When iam trying to install Ruby Rails on my centos server .When i enter Bundle install i got the error
An error occurred while installing pg (0.14.1), and Bundler cannot continue.
Make sure that gem install pg -v '0.14.1' succeeds before bundling.
When i try `gem install pg -v '0.14.1 got the below error
Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1/ext/gem_make.out
Anybody know why i get this error? Help is highly appreciated.
This should help you --
$ sudo yum install postgresql-devel
Setting up Install Process
...
Complete!
$ sudo gem install pg
Building native extensions. This could take a while...
Successfully installed pg-0.14.1
1 gem installed
Installing ri documentation for pg-0.14.1...
Installing RDoc documentation for pg-0.14.1...
Related
I download redmine in github
And open the application
After give bundle install
An error occurred while installing rmagick (2.16.0), and Bundler
cannot continue. Make sure that gem install rmagick -v '2.16.0'
succeeds before bundling.
To see why this extension failed to compile, please check the mkmf.log
which can be found here:
/home/supranimbus12/.rvm/gems/ruby-2.3.0#global/extensions/x86_64-linux/2.3.0/rmagick-2.16.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/home/supranimbus12/.rvm/gems/ruby-2.3.0#global/gems/rmagick-2.16.0
for inspection. Results logged to
/home/supranimbus12/.rvm/gems/ruby-2.3.0#global/extensions/x86_64-linux/2.3.0/rmagick-2.16.0/gem_make.out
An error occurred while installing rmagick (2.16.0), and Bundler
cannot continue. Make sure that gem install rmagick -v '2.16.0'
succeeds before bundling.
In Gemfile: rmagick
Please make sure you install Imagemagick first. If you are using ubuntu, then you can use apt-get to install Imagemagick. Also maybe you need to install libmagickwand-dev.
I am trying to install all dependencies via following command:
bundle install
It gave me following error:
An error occurred while installing libv8 <3.16.14.13>, and bundle cannot continue.
Make sure that 'gem install libv8 -v '3.16.14.13' ' succeeds before bundling.
Then from this link:
Error installing libv8: ERROR: Failed to build gem native extension
I found this solution:
gem install libv8 -v '3.16.14.13' -- --with-system-v8
It then installed the libv8
Then again I ran the command:
bundle install
Now its giving me following error:
An error occurred while installing therubyracer <0.12.2>, and bundler cannot continue.
Make sure that 'gem install therubyracer -v '0.12.2' ' succeeds before bundling.
I tried deleting therubyracer from gem file and then run the command but i am getting the same error.
Please guide me.
Thanx
I see that you are using Windows 7 , then prepare yourself:
Unfortunately, there's no know way of installing that gem on Windows:
Linked question: therubyracer not installing on Windows
This is one of many things that made me change to Linux.
EDIT
There is a workaround but its from 4 years ago so , I hope this will work:
https://github.com/eakmotion/therubyracer_for_windows
EDIT 2 - About middleman
Did you install the DevKit for RubyInstaller?.
Here you have the documentation of the gem with the installation steps:
https://github.com/middleman/middleman
EDIT 3
Check this one. There are others with the same issue (of course) and they managed to "solved" it using it:
https://github.com/jawwadzafar/middleman-boilerplate
okay. I am trying bootstarp for the first time and I added gems "therubyracer" and "less-rails" to my gemfile along with 'twitter-bootstrap-rails'. After
bundle install
I get following error.
Bundler::GemspecError: Could not read gem at /home/addie/.rvm/gems/ruby-2.1.1/cache/libv8-3.16.14.3-x86_64-linux.gem. It may be corrupted.
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.
as it says, I tried:
gem install libv8 -v '3.16.14.3'
and it does succeeds.
Building native extensions. This could take a while...
Successfully installed libv8-3.16.14.3
Parsing documentation for libv8-3.16.14.3
Done installing documentation for libv8 after 0 seconds
1 gem installed
but when I try bundle install again, I get the same error as before:
Bundler::GemspecError: Could not read gem at /home/addie/.rvm/gems/ruby-2.1.1/cache/libv8-3.16.14.3-x86_64-linux.gem. It may be corrupted.
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.
Its so annoying! Can someone please help me?
EDIT:
As most of the solution to libv8 questions suggest, I tried
gem install libv8 -v '3.11.8.17' -- --with-system-v8
it succeeds too but makes no difference to bundle install error.
Try following steps:
Remove current libv8 version
gem uninstall libv8
Re-install libv8
gem install libv8
Check new version number
gem list | grep libv
Update Gemfile to the installed version of libv8 obtained from (3) above
gem 'libv8', '3.11.8.3' #for example
Try bundling again
bundle install
When I run > bundle install
`An error occurred while installing nokogiri (1.6.2.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.2.1'` succeeds before bundling.
Ok, so I run > sudo gem install nokogiri -v '1.6.2.1'
I have this :
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.2.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out
When I run the command : rails g controller...
Could not find gem 'rspec-rails (= 2.13.1) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
Please help me!
Possible duplicates:
Mac OS X: Error to install Nokogiri on OSX 10.9 Maverick?
Ubuntu: Error installing Nokogiri 1.5.0 with rails 3.1.0 and ubuntu
The problem is probably that you have to natively install libxml and libxslt, which Nokogiri relies on.
If you run gem install nokogiri -v '1.6.2.1' | grep libxml, does anything show up?
I am trying to run my Ruby application.
I am running the bundle install command, however get the error-
An error occurred while installing libv8 (3.1.16.14.3), and Bundler cannot continue.
Make sure that 'gem install libv8 -v '3.1.16.14.3' succeeds before bundling.
So then I tried-
gem install --version '=3.16.14.3' libv8
and get the error-
Error installing libv8:
ERROR: Failed to build gem native extension.
This is required to run the application however I am not sure how to resolve this?
RUBYOPT=-rrubygems gem install libv8 -v '3.16.14.3'