(संपादित करें: समाधान के लिए नीचे देखें) मैं रेल परियोजना पर रूबी बना रहा हूं और RMagick मणि स्थापित करने की कोशिश कर रहा हूं। ओएस एक्स 10.6, रूबी संस्करण 2.0.0p247, रेल 4.0.0, आरवीएम 1.22.12 का उपयोग करना।रेल पर रूबी RMagick मणि समस्या स्थापित करें
जब मैं एक बंडल चलाने स्थापित मैं निम्नलिखित त्रुटि मिलती है:
...
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$ 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 का प्रयास करें:
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/[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
रन ठीक स्थापित करने के लिए homebrew इस्तेमाल किया!
इस प्रश्न में सुझाव काम नहीं करते हैं? http://stackoverflow.com/q/3704919/1004046 – Pigueiras
पहले 'ImageMagic' इंस्टॉल करें। Howto: http://www.imagemagick.org/script/binary-releases.php#macosx –
@YevgeniyAnfilofyev मैं अब कोशिश कर रहा हूं और मैंने उस पृष्ठ पर दिए गए निर्देशों का पालन किया, लेकिन जब मैं लोगो को परिवर्तित करने की कोशिश करता हूं: लोगो .gif' यह मुझे "अवैध निर्देश" और 'बंडल इंस्टॉल' बताता है एक ही त्रुटि फेंकता है। क्या आपके द्वारा लिंक की गई विधि हिम तेंदुए 10.6 के साथ काम करेगी, भले ही यह विवरण में माउंटेन शेर कहती है? संपादित करें: [इस] के अनुसार (http://stackoverflow.com/questions/2503172/imagemagick-on-mac-osx-now-leopard-is-there-any-way-to-get-it-to-compile- और-आर) द्विआधारी केवल शेर है :( –