0

これは以前に尋ねられたことを知っています。私は多くのことを試しましたが、これを機能させることはできません。

rvm install 1.9.3 --with-gcc=clang

また

rvm pkg install libyaml

与えます:

Fetching yaml-0.1.4.tar.gz to /Users/usr/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/usr/.rvm/src
Error running 'tar xmzf /Users/usr/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/usr/.rvm/src ', please read /Users/usr/.rvm/log/yaml/extract.log
Configuring yaml in /Users/usr/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/usr/.rvm/usr"  ', please read /Users/usr/.rvm/log/yaml/configure.log
Compiling yaml in /Users/usr/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/usr/.rvm/log/yaml/make.log

3 つのログ ファイルは次のとおりです。

抽出.log:

[2012-04-22 18:41:07] tar xmzf /Users/usr/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/usr/.rvm/src 
yaml-0.1.4/tests/example-reformatter-alt.c: Can't unlink already-existing object
yaml-0.1.4/tests/example-deconstructor.c: Can't unlink already-existing object
…
100 rows like this
…
yaml-0.1.4/win32/config.h: Can't unlink already-existing object
tar: Error exit delayed from previous errors.

構成ログ:

[2012-04-22 20:12:18]  ./configure --prefix="/Users/usr/.rvm/usr"  --with-gcc=clang 
configure: WARNING: unrecognized options: --with-gcc
./configure: line 2215: confdefs.h: Permission denied
./configure: line 2219: confdefs.h: Permission denied
./configure: line 2223: confdefs.h: Permission denied
./configure: line 2227: confdefs.h: Permission denied
./configure: line 2231: confdefs.h: Permission denied
./configure: line 2235: confdefs.h: Permission denied
./configure: line 2239: confdefs.h: Permission denied
checking for a BSD-compatible install... ./configure: line 2443: conftest.one: Permission denied
./configure: line 2444: conftest.two: Permission denied
mkdir: conftest.dir: Permission denied
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 file2
   install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 ... fileN directory
   install -d [-v] [-g group] [-m mode] [-o owner] directory ...
config/install-sh -c
checking whether build environment is sane... ./configure: line 2492: conftest.file Permission denied
configure: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment
configure: error: newly created file is older than distributed files!
Check your system clock

make.log:

[2012-04-22 20:44:29] make 
make: *** No targets specified and no makefile found.  Stop.

ruby -v は *ご覧のとおり更新されていません:

ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

gcc -v を与える:

Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

xcodebuild -version は以下を提供します:

Xcode 4.3.2
Build version 4E2002

これを解決する方法についてのアイデアはありますか? 数年前にレールを起動して実行するのはこれほど難しいことではありませんでした..

4

1 に答える 1

0

これを解決するために、このガイドに従ってから追加しました

"$(rbenv init -)"

私のbash_loginファイルに。

于 2012-04-27T07:33:10.113 に答える