Authentication is required for gems.contribsys.com. Please supply credentials for this source. You can do this by running: bundle config gems.contribsys.com username:password
Whenever I try to do bundle install I use to get this error. Is there a fix for this?
I think you need to get the correct credentials. For example, we use Sidekiq and I had to get the correct username and password. After that I ran something like
$ bundle config gems.contribsys.com foo:bar
Try running $ bundle config gems.contribsys.com username:password with the appropriate username and password.
I ran into this for a repo I forked. The source repo was using sidekiq-pro. To fix it, I edited the Gemfile and changed...
FROM the paid version
source 'https://gems.contribsys.com/' do
gem 'sidekiq-pro'
end
gem 'sidekiq'
TO the free version
gem 'sidekiq', '~> 5.2'
Related
I am trying to install the devise gem but when i use the command
rails g devise:install
i get the error message :
Could not find generator 'devise:install'. Maybe you meant 'responders:install', 'simple_form:install' or 'scss:assets'
Run rails generate --help for more options.
can anyone assist me in rectifying this issue?
Try to to solve this by deleting my Gemfile.lock, doing bundle install again and then stopping spring with spring stop I could then call the generator without root privileges
OR
Try command:
sudo rails generate devise:install
This is mostly a typo if you copied it from the github repo.
I had a similar issue.
Make sure you added the gem in the gemfile as gem 'devise'
Run in your project directory: rails generate devise:install
I have followed the base application and installation docs. I have Devise,Rails_Admin, and Cancan installed and bundled. I think I followed those install docs too. I have the admin set up and I can add users. But when I do the piggybak install I get an error. I have pulled my repo and done this three times but still cant't get past here. Any help from anyone who has installed piggybak successfully.
$ piggybak install
add reference to devise in GEMFILE
insert GEMFILE
/home/jason/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/actions/inject_into_file.rb:99:in `binread': No such file or directory - /home/jason/work/kpipe/GEMFILE (Errno::ENOENT)
make a temporary link in your home project to point to your Gemfile
ln -s Gemfile GEMFILE
Then run the piggybak install.
It suppose it is an error in piggybak, maybe they develope it on windows machine where the case doesn't matter.
I did RVM single user installation on my CentOS server as root user, so rvm location is /usr/local.. However, now we have to use individual user accounts.
So now if I try to install a new gem, for instance -
gem install linecache19 -v '0.5.12'
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/local/rvm/gems/ruby-1.9.2-p320#cams directory.
sudo gem install linecache19 -v '0.5.12'
/usr/local/rvm/rubies/ruby-1.9.2-p320/bin/gem:12:in `require': no such file to load -- rubygems (LoadError)
from /usr/local/rvm/rubies/ruby-1.9.2-p320/bin/gem:12
Point to note: I thought of re-installing the rubies and rvm with individual user account and do away with root installation. But I already have some apps running on the server as staging, so want to avoid this.
How can I solve these problems?
You obviously missed to read RVM installation documentation and overall RVM docs.
For part 1. you need to run rvmsudo rvm get stable and add your users to rvm group.
For part 2. do not use sudo it looses all environment settings - which leads to the error you see, either add your users to rvm group or run with rvmsudo.
Not sure what's going on here, but in my Rails 3 application, I type bundle install and at the end if says Your bundle is complete! It was installed into ./runner.
Weird because I have no idea where runner is coming from!
If I recall correctly, if you run something like bundle install ./runner it will remember the path ./runner. bundle install --system should fix it. i think.
See the manpage:
--path=<path>
The location to install the gems in the bundle to.
This defaults to the gem home, which is the location
that gem install installs gems to. This means that, by
default, gems installed without a --path setting will
show up in gem list. This setting is a remembered option.
--system
Installs the gems in the bundle to the system location.
This overrides any previous remembered use of --path.
While accessing pushing the code to Heroku from my system, I am getting this error. I tried a lot but unable to remove it.
WARNING: Unable to verify SSL certificate for api.heroku.com
To disable SSL verification, run with HEROKU_SSL_VERIFY=disable
Suggest something !!
Maybe it is a version problem.
Try uninstalling heroku gem with 'gem uninstall heroku' deleting de executable also.
After this try 'gem install heroku -v "<2.0.0"'
After this try to write the command 'heroku keys:add' and enter your email and password
For me this worked fine.