Bundle installation error in rails - ruby-on-rails

I have got some error during bundle install like that. I ran the command /home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/bin/bundle install
Here's the error details:
Errno::EACCES: Permission denied - /home/circar
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:245:in `mkdir'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:245:in `fu_mkdir'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:219:in `block (2 levels) in mkdir_p'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:217:in `reverse_each'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:217:in `block in mkdir_p'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:203:in `each'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:203:in `mkdir_p'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler.rb:308:in `mkdir_p'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/installer.rb:287:in `create_bundle_path'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/installer.rb:54:in `run'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/installer.rb:18:in `install'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/cli/install.rb:107:in `run'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/cli.rb:158:in `install'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/cli.rb:10:in `start'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/bin/bundle:20:in `block in <top (required)>'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/gems/bundler-1.10.3/bin/bundle:18:in `<top (required)>'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/bin/bundle:23:in `load'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/bin/bundle:23:in `<main>'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/bin/ruby_executable_hooks:15:in `eval'
/home/tanmay/.rvm/gems/ruby-2.0.0-p353#circarindia/bin/ruby_executable_hooks:15:in `<main>'
Environment
Bundler 1.10.3
Rubygems 2.1.11
Ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux]
GEM_HOME /home/circar/.gem/ruby/2.0.0/ruby/2.0.0
GEM_PATH
RVM 1.26.11 (master)
Git 1.7.9.5
Bundler settings:
without
Set for your local app (/home/tanmay/amit_rails/circarindia/.bundle/config): "development:test"
disable_shared_gems
Set for your local app (/home/tanmay/amit_rails/circarindia/.bundle/config): "1"
path
Set for your local app (/home/tanmay/amit_rails/circarindia/.bundle/config): "/home/circar/.gem/ruby/2.0.0"
UPDATE
My bundle install run fine after these command.
rm -rf ~/.bundle/ ~/.gem/
rm -rf $GEM_HOME/bundler/,
rm -rf .bundle/,
rm -rf vendor/cache/,
rm -rf Gemfile.lock,
But I don't understand these command.what is this command?
Thanks in advance

There is an error somewhere in your Ruby or environment configuration. You are logged in as tanmay and your home directory is
/home/tanmay/
but the bundle tries to write to another user home path
/home/circar/
The GEM_HOME is incorrect.
GEM_HOME /home/circar/.gem/ruby/2.0.0/ruby/2.0.0
Make sure you didn't copy/paste some configuration verbatim from a collegue. If you can't find the issue, you may want to remove and reinstall RVM.
Also make sure the PATH in your .bash_profile, .profile (or whatever env file you use) is correct and is not pointing to another home user directory.

Related

Can not bundle after upgrading to os ventura

Has anybody an idea?
I trying to just bundle the app. I have reinstalled rbenv and the ruby versions and all looks kind of good. But I keep hitting this. Same with another project on a different ruby version.
Backtrace
Errno::ENOENT: No such file or directory # rb_sysopen - /bundle/bundler.lock
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/process_lock.rb:9:in `initialize'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/process_lock.rb:9:in `open'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/process_lock.rb:9:in `lock'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/installer.rb:73:in `run'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/installer.rb:25:in `install'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/cli/install.rb:65:in `run'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/cli.rb:235:in `block in install'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/settings.rb:143:in `temporary'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/cli.rb:234:in `install'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/cli.rb:27:in `dispatch'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/cli.rb:18:in `start'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:30:in `block in <top (required)>'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/2.6.0/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/Users/xx/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:22:in `<top (required)>'
/Users/xx/.rbenv/versions/2.6.0/bin/bundle:23:in `load'
/Users/xx/.rbenv/versions/2.6.0/bin/bundle:23:in `<main>'
Environment
Bundler 1.17.2
Platforms ruby, -darwin-22
Ruby 2.6.0p0 (2018-12-25 revision 66547) [-darwin22]
Full Path /Users/xx/.rbenv/versions/2.6.0/bin/ruby
Config Dir /Users/xx/.rbenv/versions/2.6.0/etc
RubyGems 3.0.1
Gem Home /bundle
Gem Path
User Path /Users/xx/.gem/ruby/2.6.0
Bin Dir /bundle/bin
OpenSSL
Compiled OpenSSL 1.1.1s 1 Nov 2022
Loaded OpenSSL 1.1.1s 1 Nov 2022
Cert File /Users/xx/.rbenv/versions/2.6.0/openssl/ssl/cert.pem
Cert Dir /Users/xx/.rbenv/versions/2.6.0/openssl/ssl/certs
Tools
Git 2.38.1
RVM not installed
rbenv rbenv 1.2.0
chruby not installed

Ruby on rails on Jailed shell cpanel on centos

I am trying to install ruby on rails on a shared server with Cpanel with Jailed Shell on SSH.
I've this
-jailshell: rbenv: command not found
when server is starting.
After downloading the Ruby tar package, I navigated inside the folder and ran the commands,
make
and
make install
and
./configure --prefix=/usr/local/ruby -exec-prefix=/usr/local/ruby
once and it didn't work
tried even this
./configure --prefix=/usr/local/ -exec-prefix=/usr/local/
the command make install results in the following
Permission denied # dir_s_mkdir - /usr/local/ruby (Errno::EACCES)
from /home/username/ruby-2.1.1/lib/fileutils.rb:247:in `fu_mkdir'
from /home/username/ruby-2.1.1/lib/fileutils.rb:224:in `block (2 levels) in mkdir_p'
from /home/username/ruby-2.1.1/lib/fileutils.rb:222:in `reverse_each'
from /home/username/ruby-2.1.1/lib/fileutils.rb:222:in `block in mkdir_p'
from /home/username/ruby-2.1.1/lib/fileutils.rb:208:in `each'
from /home/username/ruby-2.1.1/lib/fileutils.rb:208:in `mkdir_p'
from ./tool/rbinstall.rb:193:in `makedirs'
from ./tool/rbinstall.rb:300:in `prepare'
from ./tool/rbinstall.rb:339:in `block in <main>'
from ./tool/rbinstall.rb:789:in `call'
from ./tool/rbinstall.rb:789:in `block in <main>'
from ./tool/rbinstall.rb:786:in `each'
from ./tool/rbinstall.rb:786:in `<main>'
make: *** [do-install-all] Error 1
My service provider says it's the max level of access he can give me.
Tried installing it from CPANEL Ruby on rails installation. No luck from there either.
Any workarounds to install ruby, rvm and rails?
Thanks.
P.S. Tried a lot of methods posted online, no luck.

Vagrant installation librarian-chef command error No such file or directory # rb_sysopen

I am trying to install vagrant. When I am trying to run a command librarian-chef install I am facing an Error. I am pasting the error below.
/home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl/receiver.rb:29:in `read': No such file or directory # rb_sysopen - /home/saiteja/Cheffile (Errno::ENOENT)
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl/receiver.rb:29:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl.rb:79:in `block in run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl.rb:73:in `tap'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl.rb:73:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/dsl.rb:17:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/environment.rb:148:in `dsl'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/specfile.rb:15:in `read'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/action/resolve.rb:13:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:169:in `resolve!'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-chef-0.0.4/lib/librarian/chef/cli.rb:41:in `install'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:26:in `block (2 levels) in bin!'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:31:in `returning_status'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:26:in `block in bin!'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:47:in `with_environment'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-0.1.2/lib/librarian/cli.rb:26:in `bin!'
from /home/saiteja/.rvm/gems/ruby-2.2.3/gems/librarian-chef-0.0.4/bin/librarian-chef:7:in `<top (required)>'
from /home/saiteja/.rvm/gems/ruby-2.2.3/bin/librarian-chef:23:in `load'
from /home/saiteja/.rvm/gems/ruby-2.2.3/bin/librarian-chef:23:in `<main>'
from /home/saiteja/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'
from /home/saiteja/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'
I googled it. I understood that it is some kind of path error. But I checked the path .rvm/* that is shown in error.
Any help is appreciated. Thank you.
The problem is that , we first need to install vagrant. Then we need to clone the project we need to work on git clone http://-----.There we need to perform vagrant up and vagrant ssh.
Now we are in the vagrant environment. Here we need to install our rails and ruby in order to work with the project independent of our local system (Here persons working on the same project must install same versions of them in order to work).
Perform the installation of ruby through rvm (or) rbenv and install rails. Then we need to use the command librarian-chef install, then it installs all the required gems to the directory you are working without any problem.

Rails App "Permission Denied" error when installing refinerycms

While trying to install refinery, a rails app, I keep getting the following error:
ESL#new-host-2 ~$ refinerycms /Application/MAMP/htdocs/goodwatching
create
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Permission denied - /Application (Errno::EACCES)
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:247:in `fu_mkdir'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:221:in `block (2 levels) in mkdir_p'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:219:in `reverse_each'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:219:in `block in mkdir_p'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:205:in `each'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:205:in `mkdir_p'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/actions/empty_directory.rb:51:in `block in invoke!'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/actions/empty_directory.rb:133:in `call'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/actions/empty_directory.rb:133:in `invoke_with_conflict_check'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/actions/empty_directory.rb:50:in `invoke!'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/actions.rb:95:in `action'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/actions/empty_directory.rb:15:in `empty_directory'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/generators/app_base.rb:103:in `create_root'
from (eval):1:in `create_root'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `block in invoke_all'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `map'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `invoke_all'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/group.rb:238:in `dispatch'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/refinerycms-2.0.10/bin/refinerycms:30:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/refinerycms:23:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/refinerycms:23:in `<main>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
I've seen a couple similar questions but the resolution always seems to be that target directory either doesn't exist or is owned by root. I've checked and my directory exists, is owned by me and has permissions 755.
update
I tried a lot of things so I'm not 100% sure this is relevant, but I updated rvm and then I was able to run refinercyms goodwatching from inside the original /goodwatching directory. But now I'm getting this multiple times when I run it:
NoMethodError: private method `open' called for Gem::Package:Class
An error occured while installing rake (10.0.4), and Bundler cannot continue.
Make sure that `gem install rake -v '10.0.4'` succeeds before bundling.
When I run gem install rake -v '10.0.4' it does succede, but then I get the same error again immediately after.
Try to use sudo
sudo refinerycms /Application/MAMP/htdocs/goodwatching
UPDATE
try to remove Gemfile.lock
then
sudo gem update --system
sudo gem install bundler
sudo bundle install

how to build rails running environment on FreeBSD 9.1

I know two methods:
Method 1: Install rails with ports, steps are:
install ruby,lang/ruby19
install gem, devel/ruby-gems
install rails, www/rubygem-rails
Method 2: Install rails with gem (same on Mac OS X):
install ruby,lang/ruby19
install gem, devel/ruby-gems
install rails, gem install rails
method 1 works well, but I want to try method 2, finish all steps of method2, I try to create my first app with command rails new hello, but failed, errors are followed:
What's the best method building rails development/running environment on FreeBSD 9.1?
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:70:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:70:in `block in connect'
from /usr/local/lib/ruby/1.9/timeout.rb:54:in `timeout'
from /usr/local/lib/ruby/1.9/timeout.rb:99:in `timeout'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:70:in `connect'
from /usr/local/lib/ruby/1.9/net/http.rb:755:in `do_start'
from /usr/local/lib/ruby/1.9/net/http.rb:750:in `start'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent.rb:628:in `start'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent.rb:570:in `connection_for'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent.rb:930:in `request'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/fetcher.rb:195:in `fetch'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/fetcher.rb:169:in `use_api'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:223:in `block in remote_specs'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:223:in `select'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:223:in `remote_specs'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:162:in `fetch_specs'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:66:in `specs'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/definition.rb:192:in `block (2 levels) in index'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/definition.rb:189:in `each'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/definition.rb:189:in `block in index'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/index.rb:9:in `build'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/definition.rb:185:in `index'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/definition.rb:179:in `resolve'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/definition.rb:114:in `specs'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/definition.rb:109:in `resolve_remotely!'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/installer.rb:83:in `run'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/installer.rb:14:in `install'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/cli.rb:247:in `install'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/thor/task.rb:27:in `run'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/thor.rb:344:in `dispatch'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/vendor/thor/base.rb:434:in `start'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/bin/bundle:20:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from /usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.0/bin/bundle:20:in `<top (required)>'
from /usr/local/bin/bundle:23:in `load'
from /usr/local/bin/bundle:23:in `<main>'
Do not install Ruby from your package manager, prefer RBEnv to handle this job. To use it on FreeBSD:
# as root
pkg_add -r bash curl git libxml2 libxslt node-devel sqlite3 sudo wget
# as user
# rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
git clone https://github.com/rbenv/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source ~/.profile
# ruby and rails
rbenv install 2.4.4
rbenv global 2.4.4
gem install rails
I hope this will help you :)
Source: http://chatchan.us/bsdonrails.pdf
Not able to reproduce that. Update your ports tree and try again, perhaps you need the new version of devel/ruby-gems.
Habax hit it on the head. I'd upvote you but this is a new account. Sorry!
Because I use a bash shell: .profile = .bash_profile
Newest ruby version installs correctly. Takes 5 min or so to install though.
rbenv install 2.0.0-p247
For compatibility and possibly stability, we are using rails 3.2.13 instead of 4.0.0.
gem install rails -v 3.2.13
As root install prebuilt packages:
pkg install ruby27-gems rbenv
gem install rails

Resources