Skip to content

Instantly share code, notes, and snippets.

@just3ws
Created February 6, 2011 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save just3ws/812975 to your computer and use it in GitHub Desktop.
Save just3ws/812975 to your computer and use it in GitHub Desktop.
Unable to install packages with RVM
just3ws:~ mdh$ uname -a
Darwin just3ws.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:11:58 PST 2010; root:xnu-1504.9.26~3/RELEASE_X86_64 x86_64
just3ws:~ mdh$ echo $ARCHFLAGS
-arch x86_64
just3ws:~ mdh$ rvm package install zlib
Fetching zlib-1.2.5.tar.gz to /Users/mdh/.rvm/archives
Extracting zlib-1.2.5.tar.gz to /Users/mdh/.rvm/src
Configuring zlib in /Users/mdh/.rvm/src/zlib-1.2.5.
Compiling zlib in /Users/mdh/.rvm/src/zlib-1.2.5.
Error running '/usr/bin/make ', please read /Users/mdh/.rvm/log/zlib/make.log
Installing zlib to /Users/mdh/.rvm/usr
Error running '/usr/bin/make install', please read /Users/mdh/.rvm/log/zlib/make.install.log
just3ws:~ mdh$ cat /Users/mdh/.rvm/log/zlib/make.install.log
[2011-02-05 18:33:12] /usr/bin/make install
cp libz.a /Users/mdh/.rvm/usr/lib
cp /Users/mdh/.rvm/usr/lib
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
make: *** [install-libs] Error 64
[2011-02-05 18:41:12] /usr/bin/make install
ar rc libz.a adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
ar: libz.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libz.a: Inappropriate file type or format
make: *** [libz.a] Error 1
[2011-02-05 18:42:30] /usr/bin/make install
ar rc libz.a adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
ar: libz.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libz.a: Inappropriate file type or format
make: *** [libz.a] Error 1
@mpouleijn
Copy link

I have the same error, did you already find an solution?

@just3ws
Copy link
Author

just3ws commented Feb 19, 2011

I didn't pursue the issue trying to get the RVM package to work. Ended up just using Homebrew's libzlib (IIRC).

@mattconnolly
Copy link

Same problem for me today too.

@dombesz
Copy link

dombesz commented Jun 9, 2011

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment