I am trying to install ruby 1.9.3 on my osx 10.9 operating system and I keep getting the following error :
Error running 'requirements_osx_port_update_system ruby-1.9.3-p448',
please read /Users/ramesh/.rvm/log/1383430694_ruby-1.9.3-p448/update_system.log
Requirements installation failed with status: 1.
I am using the following command to do the installtion :
rvm install 1.9.3
The complete log is as given below :
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
Requirements update log :
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
Finally I found the solution. I had to install the new command line tools for osx 10.9 (Mavrics) using the following command.
sudo xcode-select --install
Then I had to run the following command to do the macports selfupdate.
sudo port -v selfupdate
Then I can successfull install ruby 1.9.3 using the following command.
rvm install 1.9.3
Hope this will be helpful to anyone facing the same dilema.
On my computer (running mavericks), it seemed like xcode's command line tools were installed because I had access to gcc, git, etc. But there was a small additional package I had to download by doing:
$ sudo xcode-select --install
This prompts to install the command line tools. Followed by $ rvm requirements the rvm prerequisites installed properly and I was able to install ruby.
Related
I'm after little help. I'm working on a hobby project to create a mouse from an Arduino with an accelerometer.
For part of this I need to change the firmware on the atmega16u2. I have a mac so to do this I am trying to use the dfu-programmer.
When I use the ./bootstrap.sh command line in terminal I get the following error messages displayed. I was wondering if anyone could shed some light on what they mean and if this would prevent the program from working ?
DJ:dfu-programmer-0.6.2 hd334$ ./bootstrap.sh
sh: autom4te: command not found
aclocal: error: echo failed with exit status: 127
./bootstrap.sh: line 3: autoheader: command not found
sh: autoconf: command not found
automake: error: autoconf failed with exit status: 127
./bootstrap.sh: line 5: autoconf: command not found
DJ:dfu-programmer-0.6.2 hd334$
You need to install autom4te, autoheader, autoconf, libusb-compat and libusb before executing dfu-programmer.
All those auto* prerequisites are included in autoconf package. I recommend you to install home-brew package manager. It can do these things automatically. Although there is dfu-programmer package in the repository, so you can install it automatically too.
To install home-brew, run this command in your Terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Recommended: After that, install dfu-programmer with this command:
brew install dfu-programmer
If you want to install prerequisites only, run this command:
brew install autoconf libusb libusb-compat
then rerun ./bootstrap.sh.
Trying to install stable version of Jekyll on OSX Mavericks. I have Xcode and the command line tools installed, yet I get this error:
sudo gem install jekyll
Password:
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling porter.c
porter.c:359:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
~~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~
porter.c:359:27: note: place parentheses around the '&&' expression to silence this warning
if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
^
( )
1 warning generated.
compiling porter_wrap.c
linking shared-object stemmer.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [stemmer.bundle] Error 1
make failed, exit code 2
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/fast-stemmer-1.0.2/gem_make.out
Your problem appeared with Xcode 5.1. In order to avoid many problems related to MacOS' ruby version (this one and many others), you really should use RVM.
If you don't already have it, install Homebrew first: (it is not absolutely necessary, but allows us to install ruby and its dependencies without a looong compilation)
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Then, the following command will install RVM and the last version of Ruby:
\curl -L https://get.rvm.io | bash -s stable --ruby
Check everything is OK:
ruby --version
You can now install Jekyll:
gem install jekyll
Now, if you really don't want to use RVM, you can execute:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install jekyll
But I bet further problems would come.
You should definitely use RVM. Here are the steps:
Uninstall any existing XCode by deleting XCode from Applications folder.
Install Homebrew.
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Follow additional instructions listed in Homebrew install.
brew doctor
Install RVM.
\curl -L https://get.rvm.io | bash -s stable --ruby
Follow additional instructions upon RVM installation.
source ~/.rvm/scripts/rvm
Install jekyll.
gem install jekyll
Test jekyll.
$ jekyll serve
Configuration file: none
Source: /private/var/log
Destination: /private/var/log/_site
Generating... done.
Server address: ...
Server running... press ctrl-c to stop.
1) xcode-select --install
2) brew install ruby
3) sudo gem install jekyll
4) sudo gem install jekyll-import
I am trying to install ruby 1.9.2 or latest to work with cupertino gems
In order to install ruby, i have install 3rd party tool(RVM)
I am able to install rvm, However to install ruby, i am getting macport errors
I tried to resolve it using existing stackoverflow question, but it does not aid me clearly in resolving the issue
Steps which i followed are:
Installed rvm from get.rvm.io
activated rvm using below command:
$ source ~/.rvm/scripts/rvm
Now i am trying to install ruby 1.9.2 using following command:
$ rvm install 1.9.2
it fails with following error
*BLR4AUTOMATION2:ruby-1.9.2-p320 admin$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p247.
Continuing with compilation.
Please read 'rvm help mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password.
Password:
DEBUG: Copying /Users/admin/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync rsync: failed to connect to rsync.macports.org:
Connection refused (61) rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 10
DEBUG: Error synchronizing MacPorts sources: command execution failed
while executing "macports::selfupdate [array get global_options]
base_updated"
Error: /opt/local/bin/port: port selfupdate failed:
Error synchronizing MacPorts sources: command execution failed
Requirements installation failed with status: 1.*
I have tried to follow several thread related to it, but it did not work for me:
http://samkhan13.wordpress.com/2012/06/15/make-macports-work-behind-proxy
synching macports using tarballs and other sources
Tried to uninstall macports from my mac and reinstall, but that also make no use
Reinstall latest xcode with cli
I have uploaded the console logs at below location:
https://docs.google.com/document/d/1l_OFbE5d0tliKdnU_gF6Bil75Ek7wJb58h7Da_JTXdQ/edit?usp=sharing
At the same time i am able to install the ruby in my other mac machines but not on build machine
Can any one please help me in setting up ruby(1.9.2 or higher) using rvm or with other ways.
Thanks in advance!!
kishan
Check if the internet ports are available in your router, I tried in college (tons of ports closed) and got the same problem, try again in my house with less locked ports and worked just fine.
make sure you can run
sudo /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
when you find proper flags (proxy!) then you can make sure macports will use them with rsync_options from macports.conf
I'm trying to use RVM to install ruby on my iMac.
I start by typing the following:
rvm list known
I then target the version that I want to install (the guide I'm following recommends 1.9.2 instead of the base 1.8.7) with the following line:
rvm install 1.9.2
Then I get this:
27698AM:~ butler15$ rvm install 1.9.2
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-1.9.2-p320.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Password:
I enter my password and I get this:
DEBUG: Copying /Users/butler15/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync
rsync: failed to connect to rsync.macports.org: Operation timed out (60)
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 10
DEBUG: Error synchronizing MacPorts sources: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed
If I understand correctly it's trying to update MacPorts but fails due to being behind a proxy (or something?)
I've tried following this guide but it didn't work: http://samkhan13.wordpress.com/2012/06/15/make-macports-work-behind-proxy/
Further Information:
My current version of RVM and RUBY: http://d.pr/i/H1Eu
My OSX - 10.7.4
Thanks in advance for your help :)
While Koji's comment makes RVM work behind a proxy, Macports will need to be updated to automatically work behind a proxy as well.
First, install macports from the package at http://www.macports.org/install.php
Then run the following commands:
sudo mkdir -p /opt/local/var/macports/sources/svn.macports.org/trunk/dports/
cd /opt/local/var/macports/sources/svn.macports.org/trunk/dports/
sudo svn co http://svn.macports.org/repository/macports/trunk/dports/ .
In /opt/local/etc/macports/sources.conf comment out
rsync://rsync.macports.org/release/tarballs/ports.tar [default]
with your favorite editor and then add this right below that line.
file:///opt/local/var/macports/sources/svn.macports.org/trunk/dports/ [default]
And then run these commands so that it updates and doesn't complain about your ports not being indexed.
sudo port -d sync
sudo portindex
Then modify .rvm/scripts/functions/requirements/osx_port by changing selfupdate to sync in the requirements_osx_port_update_system() function.
requirements_osx_port_update_system()
{
#__rvm_try_sudo port -dv selfupdate || return $?
__rvm_try_sudo port -dv sync || return $?
}
If you are trying MAKE MACPORTS WORK BEHIND PROXY, How about avoiding port selfupdate?
$ diff -u .rvm/scripts/functions/requirements/osx_port.org .rvm/scripts/functions/requirements/osx_port
--- .rvm/scripts/functions/requirements/osx_port.org 2013-05-28 16:58:37.000000000 +0900
+++ .rvm/scripts/functions/requirements/osx_port 2013-05-28 16:58:50.000000000 +0900
## -82,7 +82,7 ##
requirements_osx_port_update_system()
{
- __rvm_try_sudo port -dv selfupdate || return $?
+ __rvm_try_sudo port -dv sync || return $?
}
requirements_osx_port_define()
In my case, it works fine.
run "__rvm_try_sudo port -dv selfupdate" in terminal and type in password by keyboard
then re-run the script to install ruby
It works on my laptop
Good luck
You need to (re)install the command lines tools first:
sudo xcode-select --install
then, update macports:
sudo port -v selfupdate
Source: https://stackoverflow.com/a/19634495/226255
Then, you might be missing some requirements so do:
sudo rvm requirements
I am having trouble installing scrapy with easy_install, I get:
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
I have gcc-4.2. I've been trying to downgrade to gcc-4.0 but cannot figure out a way ...
You need to setup your environment:
First, install Command Line Tools for Xcode (I'm not 100% sure that you can install without XCode, if not then install XCode from App Store).
Then install MacPorts
To complete macports setup run this command in Terminal.app:
% sudo port selfupdate
If you done, then you can install scapry from macports:
% sudo port install py27-scrapy
Afther this you should be able to use scrapy command in Terminal.app.