Ich habe schon eine Reihe von Beiträgen zu diesem Thema gesehen und ihre Anweisungen befolgt, aber nichts funktioniert. Ich werde unten skizzieren, was ich getan habe, und die Anweisungen, denen ich folge - wäre dankbar für jeden Rat!Probleme bei der Installation von Ruby auf Mountain Lion - ruby 1.9.3 wird nicht kompiliert
Ich habe die folgenden Installationsanweisungen befolgt: http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac
I X-Code für OSX Mountain Lion heruntergeladen haben, und installiert, um den gcc-Compiler:
$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Ich habe dann wie beschrieben durchgeführt und installiert die neueste Version von Git
$ git --version
git version 1.7.10.2 (Apple Git-33)
und ähnlich mit rvm über die Befehlszeile gemacht:
$ rvm --version
rvm 1.16.13 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
Als ich dann versuchen, Rubin mit RVM zu installieren, erhalte ich folgende:
$ rvm install 1.9.3
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p286.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286, this may take a while depending on your cpu(s)...
ruby-1.9.3-p286 - #downloading ruby-1.9.3-p286, this may take a while depending on your connection...
ruby-1.9.3-p286 - #extracted to /Users/mondemoo/.rvm/src/ruby-1.9.3-p286 (already extracted)
ruby-1.9.3-p286 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mondemoo/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286', please read /Users/mondemoo/.rvm/log/ruby-1.9.3-p286/configure.log
There has been an error while running configure. Halting the installation.
Mit dem alternativen Befehlszeile ich eine ähnliche Ausgabe zu erhalten, obwohl die mit einigen zusätzlichen Bits:
$ rvm install 1.9.3 --with-gcc=clang
-bash: -dumpversion: command not found
-bash: --version: command not found
-bash: --version: command not found
Installing Ruby from source to: /Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286, this may take a while depending on your cpu(s)...
ruby-1.9.3-p286 - #downloading ruby-1.9.3-p286, this may take a while depending on your connection...
ruby-1.9.3-p286 - #extracted to /Users/mondemoo/.rvm/src/ruby-1.9.3-p286 (already extracted)
ruby-1.9.3-p286 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mondemoo/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286 --with-gcc=clang', please read /Users/mondemoo/.rvm/log/ruby-1.9.3-p286/configure.log
There has been an error while running configure. Halting the installation.
-bash: --version: command not found
Blick in die configure.logs, erhalte ich folgendes:
$ less /Users/mondemoo/.rvm/log/ruby-1.9.3-p286/configure.log
[2012-10-17 07:39:15] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mondemoo/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286 --with-gcc=clang
checking build system type... x86_64-apple-darwin12.2.0
checking host system type... x86_64-apple-darwin12.2.0
checking target system type... x86_64-apple-darwin12.2.0
checking whether the C compiler works... no
configure: error: in `/Users/mondemoo/.rvm/src/ruby-1.9.3-p286':
configure: error: C compiler cannot create executables
See `config.log' for more details
Ich bin jetzt völlig verwirrt darüber, was ich falsch gemacht habe - kann jemand helfen? Es scheint, dass es ein Problem mit dem C-Compiler (gcc?) Gibt, interpretiere ich es richtig? Wenn ja, wie repariere ich das? Wie komme ich auch zu dieser "config.log", die oben in der configure.log erwähnt wird?
Danke!
Bitte formatieren Sie Ihre Post mit vier Leerzeichen Einrückung für Terminal-Ausgabe. –
Was sagt das Konfigurationsprotokoll? – halfelf
lesen Sie bitte /Users/mondemoo/.rvm/log/ruby-1.9.3-p286/configure.log, es ist höflich. –