This question already has answers here:
Difference between $Bundle install and $Bundle update
(2 answers)
Closed 9 years ago.
What are differences amongst bundle, bundle install, bundle update?
Could you tell me when I should use
bundle
bundle install
bundle update
Bundle install will install gems according to Gemfile spec and put them in gemenv. Bundle update updates all gems to the latest version.
Related
This question already has answers here:
The 'json' native gem requires installed build tools
(8 answers)
Closed 5 years ago.
Whenever I try to install a gem on the latest version ruby with the devkit I get an error saying that I have to install development tools first! Please help because I really want to install beEF on my PC. Thanks!
First you should check this out if you haven't: https://rubyinstaller.org/
then on that site it has instructions on how install the development kit.
if you look at the documentation for devkit https://github.com/oneclick/rubyinstaller/wiki/Development-Kit follow the instructions
cd to devkit directory
ruby dk.rb init
ruby dk.rb install
After those steps above try to install your gem again.
This question already has answers here:
'sudo gem install' or 'gem install' and gem locations
(8 answers)
Closed 6 years ago.
So I've read every post on how to stop sudo installing gems and there's literally 100's of different answers and one still hasn't struck as gold yet. Can someone, once and for all, offer the most simple and concise manner in which to edit and update your bash profile to rewrite permissions and stop sudo installing gems?
Below is just an example to show you what I get every time. For the past few weeks, I've just been doing everything and I know this is putting a band-aid over the problem.
LMagnotti$ gem install nokogiri
ERROR: While executing gem ... (Errno::EACCES)
Permission denied # rb_sysopen - /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.6.7.2/.autotest
In order to stop installing ruby gems from sudo just use rvm or rbenv apps, they allow to mount system rubies, otherwise all the gems will be installed to system folder since rubygem app is also installed to system. That is proper way to use gems for each project, but also you can specify in ~/.gemrc another folder in your home or in var/ folder:
gem: --no-rdoc --no-ri
gemhome: /var/ruby/1.8/gem_home
gempath:
- /usr/ruby/1.8/lib/ruby/gems/1.8
Reinstall ruby with rbenv. It store gems and ruby inside your users home directory, so when you'll install gems no need for sudo
This question already has answers here:
How to install gem from GitHub source?
(11 answers)
Closed 7 years ago.
I have downloaded a gem source from a private repository to my local machine, how can I install it from the source?
if you have the full source code no need to use :git notation, just go to to folder and do
gem build GEMNAME.gemspec
gem install gemname-version.gem
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm really starting to have a headache.
This makes the hours I try to settle my problem without success ...
So I go to this directory : cd /opt/metasploit/apps/pro/msf3/tools.
Ans ./pattern_create.rb 20
and unfortunately :
Could not find rake-10.0.4 in any of the sources
Run bundle install to install missing gems.
I tried to install but each time the error returns:
sudo gem install bundler and sudo gem install rake
thank you very much ;)
I also faced the same problem,
Try this, it worked for me.
/opt/metasploit/ruby/bin/ruby pattern_create.rb 2000
You need to run sudo gem install bundler and sudo gem install rake.
You should run sudo gem install rake --version "10.0.4". This will install the version needed for your version of metasploit. Running sudo gem install rake will install the lastest version of the "gem".
I'm trying to install Redmine, but I'm in trouble on the final steps.
I never used a Ruby environment before, I'm a complete beginner.
$ RAILS_ENV=production rake db:migrate
Could not find i18n-0.6.1 in any of the sources
Run `bundle install` to install missing gems.
(bundle install in not helping.)
So I tried to 'gem install i18n -v 0.6.1', telling me '1 gem installed' and everything ok.
And it still doesn't work, and still don't get i18n (in any version) when I 'gem list'
The previous answer doesn't fix anything for me, I'm not using passenger.
Thanks.
EDIT : I found the dir where my gems are, /var/lib/gems/1.8/gems
in18-0.6.1 and other gems are here, but not listed in 'gem list'
EDIT 2 : Ok, my problem is more precise now. I'm actually trying to write a puppet script to install Redmine, and the 'bundle install' is actually working on a command line, but not in an exec puppet resource.
If you have problem with installing gems on remote and have not frequently updated project, you can cache gems and add them to git by bundle package and installing them after by
bundle install --local