I have install the latest Xcode but this keep occurring. How could I solve this issue?
Fetching yaml-0.1.4.tar.gz to /Users/dmonkeys/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/dmonkeys/.rvm/src
Error running 'tar xmzf /Users/dmonkeys/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/dmonkeys/.rvm/src ', please read /Users/dmonkeys/.rvm/log/ruby-1.9.3-p194/yaml/extract.log
Configuring yaml in /Users/dmonkeys/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/dmonkeys/.rvm/usr" ', please read /Users/dmonkeys/.rvm/log/ruby-1.9.3-p194/yaml/configure.log
Compiling yaml in /Users/dmonkeys/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/dmonkeys/.rvm/log/ruby-1.9.3-p194/yaml/make.log
Database file /Users/dmonkeys/.rvm/config/packages does not exist.
Installing Ruby from source to: /Users/dmonkeys/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #fetching
ruby-1.9.3-p194 - #extracted to /Users/dmonkeys/.rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #configuring
Error running ' ./configure --prefix=/Users/dmonkeys/.rvm/rubies/ruby-1.9.3-p194 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/dmonkeys/.rvm/usr ', please read /Users/dmonkeys/.rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.
ls: /Users/dmonkeys/.rvm/rubies/*/bin/ruby: No such file or directory
It looks like missing development tools, read output of (and follow instructions):
rvm requirements
Most important you need make you can get it with osx-gcc-installer.
For fresh installation an option would be also RailsInstaller for OSX
Related
I get the following Error when running rvm reinstall 1.9.3, I followed some advice to deleted these files and folders below, now I dont have them even after removing rvm and reinstalling with curl, what do I do? I used the rails installer, and I think that is what has messed this whole thing up. I just want to start from scratch.
rm -rf /opt/sm
rm /etc/rvmrc
rm /etc/profile.d/sm.sh
I also get this output when trying to install rvm reinstall 1.9.3
$ rvm reinstall 1.9.3
Removing /usr/local/rvm/src/ruby-1.9.3-p385...
Removing /usr/local/rvm/rubies/ruby-1.9.3-p385...
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p385.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives
Extracting yaml to /usr/local/rvm/src/yaml-0.1.4
Configuring yaml in /usr/local/rvm/src/yaml-0.1.4.
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/usr/local/rvm/usr --disable-shared', please read /usr/local/rvm/log/ruby-1.9.3-p385/yaml/configure.log
Compiling yaml in /usr/local/rvm/src/yaml-0.1.4.
Error running 'make', please read /usr/local/rvm/log/ruby-1.9.3-p385/yaml/make.log
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p385, this may take a while depending on your cpu(s)...
ruby-1.9.3-p385 - #downloading ruby-1.9.3-p385, this may take a while depending on your connection...
ruby-1.9.3-p385 - #extracting ruby-1.9.3-p385 to /usr/local/rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p385 --with-opt-dir=/usr/local/rvm/usr --disable-shared', please read /usr/local/rvm/log/ruby-1.9.3-p385/configure.log
There has been an error while running configure. Halting the installation.
PLEASE help this has been taking me forever, to figure this out.
make.log
[2013-02-11 21:27:46] make
make: *** No targets specified and no makefile found. Stop.
after removing the files you need also open new terminal - if it does not help - restart computer
I am trying to upgrade Ruby with rvm. I am getting this error. First post.
macbook:bin stephentrovato$ rvm install 1.9.3
Installing Ruby from source to: /Users/stephentrovato/.rvm/rubies/ruby-1.9.3, this may take a while depending on your cpu(s)...
ruby-1.9.3 - #fetching
ERROR: Error running 'bunzip2 '/Users/stephentrovato/.rvm/archives/ruby-1.9.3-.tar.bz2'', please read /Users/stephentrovato/.rvm/log/ruby-1.9.3/extract.log
ruby-1.9.3 - #extracting ruby-1.9.3- to /Users/stephentrovato/.rvm/src/ruby-1.9.3
ERROR: Error running 'tar xf /Users/stephentrovato/.rvm/archives/ruby-1.9.3-.tar -C /Users/stephentrovato/.rvm/tmp/rvm_src_1714', please read /Users/stephentrovato/.rvm/log/ruby-1.9.3/extract.log
ERROR: There has been an error while trying to extract the source.
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.
Edit: Error log -
[2012-12-02 17:52:35] tar xf /Users/stephentrovato/.rvm/archives/ruby-1.9.3-.tar -C /Users/stephentrovato/.rvm/tmp/rvm_src_2516
tar: Error opening archive: Failed to open '/Users/stephentrovato/.rvm/archives/ruby-1.9.3-.tar'
There's something weird happening with RVM, it's not choosing the patchlevel correctly. There's lots of references to ruby-1.9.3- which should be ruby-1.9.3-p327. I think that's why it can't fetch the archive, should be nothing to do with Xcode.
Try updating your RVM by doing rvm get stable and then try again.
I am having trouble installing Ruby using RVM. I had tried using readline and other suggestions online. None of the solutions worked.
I use Cygwin, Bash and have RVM installed.
rvm install 1.9.2
No binary rubies available for: /ruby-1.9.2-p320.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /home/arvenkataraman/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /home/arvenkataraman/.rvm/src
Configuring yaml in /home/arvenkataraman/.rvm/src/yaml-0.1.4.
Compiling yaml in /home/arvenkataraman/.rvm/src/yaml-0.1.4.
Error running 'make', please read /home/arvenkataraman/.rvm/log/ruby-1.9.2-p320/yaml/make.log
Installing Ruby from source to: /home/arvenkataraman/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)...
ruby-1.9.2-p320 - #downloading ruby-1.9.2-p320, this may take a while depending on your connection...
ruby-1.9.2-p320 - #extracting ruby-1.9.2-p320 to /home/arvenkataraman/.rvm/src/ruby- 1.9.2-p320
ruby-1.9.2-p320 - #extracted to /home/arvenkataraman/.rvm/src/ruby-1.9.2-p320
ruby-1.9.2-p320 - #configuring
ruby-1.9.2-p320 - #compiling
ruby-1.9.2-p320 - #installing
ruby-1.9.2-p320 is not installed.
To install do: 'rvm install ruby-1.9.2-p320'
I see the below in the error log "/home/arvenkataraman/.rvm/log/ruby-1.9.2-p320/yaml/make.log"
$ cat /home/arvenkataraman/.rvm/log/ruby-1.9.2-p320/yaml/make.log
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/arvenkataraman/.rvm/src/yaml-0.1.4/config/missing --run aclocal-1.11
cd . && /bin/sh /home/arvenkataraman/.rvm/src/yaml-0.1.4/config/missing --run automake-1.11 --foreign
src/Makefile.am:2: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:2: The usual way to define `LIBTOOL' is to add `LT_INIT'
src/Makefile.am:2: to `configure.ac' and run `aclocal' and `autoconf' again.
src/Makefile.am:2: If `LT_INIT' is in `configure.ac', make sure
src/Makefile.am:2: its definition is in aclocal's search path.
Makefile:256: recipe for target `Makefile.in' failed
make: *** [Makefile.in] Error 1
This work for me make sure RVM is up to date
rvm get head
CC=/usr/bin/gcc rvm install 1.9.2 --enable-shared
note: /usr/bin/gcc ==> path/to/gcc
few steps:
update RVM: rvm get head
read and follow instructions: rvm requirements
reinstall ruby: rvm reinstall 1.9.2
I am trying to install ruby using rvm on a remote server through terminal.
I am following this link
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
But at the install step I get the following error. I tried to look for the issue over net but couldn't resolve it. Please help me here.
$ rvm install 1.9.3
https://rvm.io/binaries/ubuntu/12.04/x86_64/ruby-1.9.3-p286.tar.bz2 - #configure<br>
ruby-1.9.3-p286 - #download<br>
ruby-1.9.3-p286 - #extract<br>
ruby-1.9.3-p286 - #validate<br>
**Libraries missing for ruby-1.9.3-p286: libruby.so.1.9. Refer to your system manual for installing libraries** <br>
Mounting remote ruby failed, trying to compile.<br>
Installing Ruby from source to: /home/ubuntu/.rvm/rubies/ruby-1.9.3-p286, this may take a while depending on your cpu(s)...<br>
ruby-1.9.3-p286 - #downloading ruby-1.9.3-p286, this may take a while depending on your connection...<br>
ruby-1.9.3-p286 - #extracted to /home/ubuntu/.rvm/src/ruby-1.9.3-p286 (already extracted)
Patch cflags was already applied.<br>
ruby-1.9.3-p286 - #configuring<br>
ruby-1.9.3-p286 - #compiling<br>
Write failed: Broken pipe
try to update rvm first, this problem is supposed to be fixed already:
rvm get head
rvm reinstall 1.9.3
if you still see it report problems/errors here: https://github.com/wayneeseguin/rvm/issues
Running into big problems at step one. I got RVM installed, then typed "rvm install 1.9.3" and here's the output:
David-Coles-MacBook-Air:~ DavesPiece$ rvm install 1.9.3
Fetching yaml-0.1.4.tar.gz to /Users/DavesPiece/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/DavesPiece/.rvm/src
Configuring yaml in /Users/DavesPiece/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/DavesPiece/.rvm/usr" ', please read /Users/DavesPiece/.rvm/log/ruby-1.9.3-p194/yaml/configure.log
Compiling yaml in /Users/DavesPiece/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/DavesPiece/.rvm/log/ruby-1.9.3-p194/yaml/make.log
Database file /Users/DavesPiece/.rvm/config/packages does not exist.
Installing Ruby from source to: /Users/DavesPiece/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #fetching
ruby-1.9.3-p194 - #extracted to /Users/DavesPiece/.rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #configuring
Error running ' ./configure --prefix=/Users/DavesPiece/.rvm/rubies/ruby-1.9.3-p194 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/DavesPiece/.rvm/usr ', please read /Users/DavesPiece/.rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.
ls: /Users/DavesPiece/.rvm/rubies/*/bin/ruby: No such file or directory
David-Coles-MacBook-Air:~ DavesPiece$
I went and read the log files it mentioned but that lead nowhere. Any idea what I should do? I've practically Googled my face off and can't find a solution.
this looks suspicious, how did you installed RVM ?
the simplest solution is to:
touch /Users/DavesPiece/.rvm/config/packages
If you don't have Xcode, you'll need to install it. If you have Lion 10.7.3 or above you can find it in the App Store. Otherwise, you will need to go to the Apple Developer site (requires account) to find instructions for downloading and installing it.
Also, if you're on Lion, you may need to download and install GCC-10.7-v2.pkg. If you see a message about your compiler being LLVM based, you may need to use this command instead:
CC=/usr/bin/gcc-4.2 rvm install 1.9.2-p290 --enable-shared
Without having seen your configure.log this is just a best guess.
Can't install Ruby under Lion with RVM – GCC issues