(편집 : 하단을 참조하십시오.) Ruby On Rails 프로젝트를 만들고 있는데 RMagick gem을 설치하려고합니다. OS X 10.6, Ruby 버전 2.0.0p247, Rails 4.0.0, RVM 1.22.12 사용.Ruby on Rails RMagick gem 설치 문제
나는 번들을 실행하면 나는 다음과 같은 오류 얻을 설치 : 그럼
Jason-Pathers-MacBook-Pro:BuyABrick jasonpather$ gem install rmagick -v '2.13.2'
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /Users/jasonpather/.rvm/gems/ruby-2.0.0-p247/gems/rmagick
-2.13.2/build_tarball.rake
내가 sudo를 시도 : 내가 제안을 시도 그럼
...
Installing rmagick (2.13.2)
Errno::EACCES: Permission denied - /Users/jasonpather/.rvm/gems/ruby-2.0.0-p247/g
ems/rmagick-2.13.2/build_tarball.rake
An error occurred while installing rmagick (2.13.2), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.2'` succeeds before bundling.
을
Jason-Pathers-MacBook-Pro:BuyABrick jasonpather$ sudo gem install rmagick -v '2.1
3.2'
Password:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/Users/jasonpather/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc-4.2... yes
checking for Magick-config... no
Can't install RMagick 2.13.2. Can't find Magick-config in /Users/jasonpather/.rvm
/gems/ruby-2.0.0-p247/bin:/Users/jasonpather/.rvm/gems/[email protected]/bin
:/Users/jasonpather/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/jasonpather/.rvm/gems/
ruby-2.0.0-p247/bin:/Users/jasonpather/.rvm/gems/r[email protected]/bin:/User
s/jasonpather/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/jasonpather/.rvm/bin:/opt/lo
cal/bin:/opt/local/sbin:/opt/local/lib/postgresql83/bin/:/usr/local/bin:/usr/bin:
/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/jasonpather/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
Gem files will remain installed in /Users/jasonpather/.rvm/gems/ruby-2.0.0-p247/g
ems/rmagick-2.13.2 for inspection.
Results logged to /Users/jasonpather/.rvm/gems/ruby-2.0.0-p247/gems/rmagick-2.13.
2/ext/RMagick/gem_make.out
을 어떤 도움을 주셔서 감사합니다. 나는이 사이트에서 유사한 질문을 보았지만 어떤 제안도 도움이되지 않았다. RMagick 또는 다른 것을 설치하기 전에 다른 패키지를 설치해야합니까?
편집 : 솔루션
는 단순히 ImageMagick를 brew install imagemagick
다음 sudo gem install rmagick
지금 bundle install
실행 벌금을 설치하는 사제를 사용!
이 질문에있는 제안은 작동하지 않습니까? http://stackoverflow.com/q/3704919/1004046 – Pigueiras
먼저 ImageMagic을 설치하십시오. Howto : http://www.imagemagick.org/script/binary-releases.php#macosx –
@YevgeniyAnfilofyev 나는 지금 그걸 시도하고 있는데, 그 페이지의 지시를 따랐다. 그러나'convert logo : logo .gif' 그것은 "잘못된 명령"과 "번들 설치"에서 같은 오류를 발생시킵니다. 설명에 Mountain Lion이 있다고해도 Snow Leopard 10.6과 연동 된 메서드가 작동합니까? 편집 : [this] (http://stackoverflow.com/questions/2503172/imagemagick-on-mac-osx-snow-leopard-is-there-any-way-to-get-it-to-compile- and-r) 바이너리가 라이온 전용 인 경우 : ( –