V 에 설치하는 테루비라서 " 컴팩트형 # 39, & # 39 를 사용하여 매버릭스, 테루비라서 0.10.2& "; 하지만 나는 점점 다음 오류:
/Users/dennischen/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for main() in -lobjc... yes
creating Makefile
make
compiling rr.cpp
clang: warning: argument unused during compilation: '-rdynamic'
rr.cpp:48:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
compiling v8.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_array.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_callbacks.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_context.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_date.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_debug.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_exception.cpp
clang: warning: argument unused during compilation: '-rdynamic'
v8_exception.cpp:10:16: warning: unused variable 'stack' [-Wunused-variable]
static void* stack[20];
^
1 warning generated.
compiling v8_external.cpp
clang: warning: argument unused during compilation: '-rdynamic'
v8_external.cpp:10:9: warning: unused variable 'references' [-Wunused-variable]
VALUE references;
^
1 warning generated.
compiling v8_function.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_handle.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_locker.cpp
clang: warning: argument unused during compilation: '-rdynamic'
v8_locker.cpp:45:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
v8_locker.cpp:85:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
compiling v8_message.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_object.cpp
clang: warning: argument unused during compilation: '-rdynamic'
v8_object.cpp:77:19: warning: unused variable 'proto' [-Wunused-variable]
Handle<Value> proto(rr_rb2v8(prototype));
^
1 warning generated.
compiling v8_script.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_string.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_template.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_try_catch.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_v8.cpp
clang: warning: argument unused during compilation: '-rdynamic'
compiling v8_value.cpp
clang: warning: argument unused during compilation: '-rdynamic'
v8_value.cpp:100:9: warning: unused function 'ToInt32' [-Wunused-function]
VALUE ToInt32(VALUE self) {
^
1 warning generated.
compiling v8_weakref.cpp
clang: warning: argument unused during compilation: '-rdynamic'
linking shared-object v8.bundle
clang: error: no such file or directory: '/Users/dennischen/.rvm/gems/ruby-1.9.3-p194@panini/gems/libv8-3.3.10.4/lib/libv8/build/v8/libv8.a'
make: *** [v8.bundle] Error 1
아무나 돕는다구요 알아낼 수 있는 방법을 afaq afnor 컴팩트형 작동합니까? 나는 명령줄이 툴과도 설치되었음.
사용하려는 경우 최신 버전 "'테루비라서"' 이 문제가 더 이상 컴팩트형 됩니다
그렇지 않으면.
brew tap homebrew/dupes # Thanks Tom
brew install apple-gcc42
export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2
brew uninstall v8
gem uninstall libv8
gem install therubyracer -v '0.10.2' # specify version
이 때문에 일부 뒤 일을 이제서야 상대적으로 부진했다. 덕분에 사이몬씨세요 및 알바로.
하지만 나는 내 업무에 사용하는 할 게 하나 추가 - v8 및 시스템 플래깅 않았다. 그래서 내 시스템 v8 함께 재거됨
v8 '제거' 브루 (brew)
그리고 실행하십시오
컴팩트형 libv8 '설치'
이미 libv8 설치할 경우 반드시 시스템과 함께 하는 '제거' 컴팩트형 실행하십시오 플래깅 컴팩트형 v8 버전 (do it 를 실행하여 컴팩트형 libv8 '제거'). # 39 한 사용할 수 있는 중요한 것은 shouldn& 제공한 것으로 보이지 않는다, 브루 (brew), t 작업하십시오 매버릭스 (it gets 설치되었음 잘 들러 보고하고 해당 번들에는 페일오버됩니다 사용하려고 할 때, 무릎은 완료하십시오 app 은 v8).
brew install apple-gcc42
sudo ln -s /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 /usr/bin/gcc
sudo ln -s /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2 /usr/bin/g++
sudo ln -s /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2 /usr/bin/cpp
brew uninstall v8
gem install libv8
gem install therubyracer
내가 나를 위한 것이고, 이 같은 문제가 있었다.
>. & 테루비라서 (0.10.2). libv8 (3.3.10.4)
첫째:
설치 애플 gcc42 브루 (brew) '-'
이 후 할 수 있습니다.
v8 '-' 브루 (brew) 설치
brew install apple-gcc42
다음 중 하나를 선택해야 할 수 있습니다 / usr / bin}, {mgcc 대한 일부 심볼릭 g++ c++컴파일러는 이진용으로:
sudo ln -s /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 /usr/bin/gcc
sudo ln -s /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2 /usr/bin/g++
sudo ln -s /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2 /usr/bin/cpp
사실 g++ 충분히 있어야 합니다.
Cpp / 수 / CC 익스포트합니다 오리유 크스 경로가 있는 환경 변수를 해당하는 만든 이진용으로 되었다. # 39 의 흘로 that& 보다 깔끔한 해결 방법.
해결 방법은 해당 애플리케이션을 다운로드 및 설치 Xcode 4.6.3 3 폴더. 그런 다음, 터미널 입력:
sudo xcode-select --switch /Applications/Xcode4.6.3.app/Contents/Developer
gem install therubyracer
일단 Xcode 5.0 컴팩트형 설치한 전환할 수 있습니다.
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
애플 gcc42 설치 없이 일을 하는 방법을 찾았다.
이 경우, 오류 메시지가 you& # 39 는 작동합니까 re getting 다음과 같습니다.
clang: error: no such file or directory: '/Users/mscottford/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.4/lib/libv8/build/v8/libv8.a'
그럼 다음 작업을 수행할 수 있어야 합니다.
brew install v8
bundle install
# after failing create link from brew installed v8 to error location
ln -s /usr/local/Cellar/v8/3.21.17/lib/libv8_base.x64.a /Users/mscottford/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.4/lib/libv8/build/v8/libv8.a
bundle install
출처: https://github.com/cowboyd/therubyracer/issues/277 # issuecomment-27734348
내가 관리하는 루비, 맥 os x 10.9 의 설치 및 libv8 3.16.14.3 2.0.0p353 테루비라서 0.12
libv8 gcc42 필요합니다.
brew install v8
brew install apple-gcc42
sudo ln -sf /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 /usr/bin/gcc
sudo ln -sf /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2 /usr/bin/g++
sudo ln -sf /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2 /usr/bin/cpp
gem install libv8
나중에 테루비라서 单捞磐啊 mgcc
brew install gcc49
sudo ln -sf /usr/local/Cellar/gcc49/4.9-20131110/bin/gcc-4.9 /usr/bin/gcc
sudo ln -sf /usr/local/Cellar/gcc49/4.9-20131110/bin/g++-4.9 /usr/bin/g++
sudo ln -sf /usr/local/Cellar/gcc49/4.9-20131110/bin/cpp-4.9 /usr/bin/cpp
험프리리
gem 'therubyracer', :require => 'v8', :platforms => :ruby
'대신' 번들에는 컴팩트형 테루비라서 '설치' 사용
제안된 대로 하는 게 가장 많은 응답을 할 컴파일하십시오 루비) 는 애플과 넷윈을 확장명은 mgcc 4.2 (대신) 을 탑재한 버전 Xcode).
# If you don't have it, install the port for Apple's GCC 4.2
sudo port install apple-gcc42
# OR
# If you had apple-gcc42 already (before Mavericks), update it
sudo port upgrade apple-gcc42
# Same result as manual symlinking of GCC in other answers
sudo port select gcc apple-gcc42 && hash -r
# Install therubyracer, will install libv8 gem dependency
# *note* if you have any existing versions of these gems, remove them
gem install therubyracer
# Restore GCC to system default (optional)
sudo port select gcc none && hash -r
일반적으로 이 절차 (mgcc [버전] '을' sudo port) 은 특정 대신 사용할 때마다 작동합니까 GCC 버전 1 에서 설치한 엑스코드 (Xcode 10.9 매버릭스 / LLVM v5 를 애플 5).
이렇게 하면 누구나 (no 심볼릭) 를 설치할 수 있는 길이 깔끔하고 페일세이프 테루비라서 mpfs.
출처: https://stackoverflow.com/questions/27747066/gem-install-therubyracer-v-0-11-4-fails-on-os-x-10-10
설치 Xcode (don& 경우 이미 t # 39, one of these 버전) 또는 6.3-beta 4.6.3 6.2-beta 6.1.1, 그리고 (이 번호요 요구되는가)
'제거' 컴팩트형 libv8 haven& 경우 아웃하지 t # 39.
xcode 4.6.3 전환하십시오
sudo xcode 를 스위치였습니다 /applications/xcode4.6.3.app/contents/developer '-'
xcode 6.1.1, 또는 6.3-beta 전환하십시오 6.2-beta (또는 스케쳐내 시도하시려면 현재 설치 Xcode 조정하십시오 I& # 39, ve 확인된 3 선, 이 모든 이러한 작동합니까)
sudo xcode 를 스위치였습니다 /applications/xcode6.1.1.app/contents/developer '-'
난 이미 거의 동일한 오류 설치하려고 하면 0.12.0 테루비라서 afaq 작동하도록 libv8. 이 협력했습니다 가져다줄래요:
$ brew upgrade gcc
$ gem uninstall therubyracer
$ gem uninstall libv8
$ gem install therubyracer -v '0.12.0'
Fetching: therubyracer-0.12.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed therubyracer-0.12.0
1 gem installed
$ gem install libv8 -v '3.16.14.3' -- --with-system-v8
Fetching: libv8-3.16.14.3.gem (100%)
Building native extensions with: '--with-system-v8'
This could take a while...
Successfully installed libv8-3.16.14.3
1 gem installed
내가 이 문제를 업그레이드한 후 매버릭스 요세미티 수 있었다. 문제는 그게 내 루비 버전과 컴파일했습니다 이전 버전의 OSX.
만약 내가 실행했음
'루비 & # 39, & # 39 는 Gem::Platform.new 루비그레마스 - - e (RUBY_PLATFORM),'
꼭 이래야겠어요 프레젠테이션이든 '대신' 에 대해 'x86_64-darwin-14 x86_64-darwin-13' 요세미티.
내가 하는 재설치합니다 루비
그럼 난 후 모든 솔루션을 설치 오류 없이 실행할 수 있다 '' 번들에는 명이다.
전 그 때 내가 업그레이드됨 OSX 에 OSX 에서 이 같은 문제를 마운틴 라이언 매버릭스.
Ruby-1.8.7-375 ruby-1.8.7-p354 업그레이드할 수 있도록 한 것이 for me.
아마 루비 1.9.3-p194 rc1 (1.9.3 이상 p484 now) 를 업그레이드한 시도하시겠습니까
베네프 가정할 때 사용할 수 있습니다.
rbenv install 1.9.3-rc1
rbenv rehash
rbenv global 1.9.3-rc1
bundle install