I tried the following command rhc setup and following message is displayed
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- net/ssh (LoadError)
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/ssh_helpers.rb:18:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/wizard.rb:72:in `<class:Wizard>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/wizard.rb:6:in `<module:RHC>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/wizard.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/commands/base.rb:4:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/commands/app.rb:1:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/commands.rb:139:in `block in load'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/commands.rb:138:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/commands.rb:138:in `load'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/lib/rhc/cli.rb:35:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/rhc-1.8.9/bin/rhc:18:in `<top (required)>'
from /usr/local/bin/rhc:23:in `load'
from /usr/local/bin/rhc:23:in `<main>'
What is the problem?
periodically updating to the latest version of rhc is a good idea as well:
sudo gem update rhc
It should pull net-ssh in as a dependency.
Updating net-ssh to 2.9.3.beta1, as cremno suggested in this comment, resolved my problem and a few other people as well.
$ gem install net-ssh -v 2.9.3.beta1
this answer is from: rhc setup gives error `no such file dl/import`
This below code did the trick
sudo gem install net-ssh
Related
Since yesterday the same install process using mailcatcher in an github actions fails.
Operating system tested with Ubuntu latest and 20.04
The way mailcatcher gets installed:
- name: Install & run mailcatcher
run: |
sudo gem install mailcatcher --no-update-sources --no-document
mailcatcher
Nothing changed so far. Any idea?
Run sudo gem install mailcatcher --no-update-sources --no-document
sudo gem install mailcatcher --no-update-sources --no-document
mailcatcher
shell: /usr/bin/bash -e {0}
Building native extensions. This could take a while...
Successfully installed eventmachine-1.0.9.1
...
Successfully installed daemons-1.4.1
Building native extensions. This could take a while...
Successfully installed thin-1.5.1
Successfully installed skinny-0.2.4
Successfully installed mailcatcher-0.8.2
13 gems installed
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `require': cannot load such file -- mail/indifferent_hash (LoadError)
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `rescue in require'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:156:in `require'
from /var/lib/gems/2.7.0/gems/mail-2.8.0/lib/mail.rb:14:in `<module:Mail>'
from /var/lib/gems/2.7.0/gems/mail-2.8.0/lib/mail.rb:3:in `<top (required)>'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher/mail.rb:5:in `<top (required)>'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher/smtp.rb:5:in `<top (required)>'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher.rb:183:in `block (2 levels) in run!'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher.rb:233:in `rescue_port'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher.rb:182:in `block in run!'
from /var/lib/gems/2.7.0/gems/eventmachine-1.0.9.1/lib/eventmachine.rb:193:in `run_machine'
from /var/lib/gems/2.7.0/gems/eventmachine-1.0.9.1/lib/eventmachine.rb:193:in `run'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher.rb:180:in `run!'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/bin/mailcatcher:6:in `<top (required)>'
from /usr/local/bin/mailcatcher:23:in `load'
from /usr/local/bin/mailcatcher:23:in `<main>'
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- mail/indifferent_hash (LoadError)
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /var/lib/gems/2.7.0/gems/mail-2.8.0/lib/mail.rb:14:in `<module:Mail>'
from /var/lib/gems/2.7.0/gems/mail-2.8.0/lib/mail.rb:3:in `<top (required)>'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher/mail.rb:5:in `<top (required)>'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher/smtp.rb:5:in `<top (required)>'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher.rb:183:in `block (2 levels) in run!'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher.rb:233:in `rescue_port'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher.rb:182:in `block in run!'
from /var/lib/gems/2.7.0/gems/eventmachine-1.0.9.1/lib/eventmachine.rb:193:in `run_machine'
from /var/lib/gems/2.7.0/gems/eventmachine-1.0.9.1/lib/eventmachine.rb:193:in `run'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/lib/mail_catcher.rb:180:in `run!'
from /var/lib/gems/2.7.0/gems/mailcatcher-0.8.2/bin/mailcatcher:6:in `<top (required)>'
from /usr/local/bin/mailcatcher:23:in `load'
from /usr/local/bin/mailcatcher:23:in `<main>'
Starting MailCatcher v0.8.2
Error: Process completed with exit code 1.
Tried different ubuntu installs and lower ruby versions
There's a bug in the mail gem right now -- see this issue on their github.
You'll need to force a downgrade to version 2.7.1 of their gem in your gemfile:
gem "mail", "~> 2.7.1"
My server is ubuntu 14.04 (32bit).
GitLab easy installation is provided only for 64bit Ubuntu.
So I follow the guideline for installing GitLab from source. (documentation)
However, in Install GitLab Shell Phase, an error is occurred like below. (The first line...)
# sudo -u git -H bundle exec rake gitlab:shell:install REDIS_URL=unix:/var/run/redis/redis.sock RAILS_ENV=production SKIP_STORAGE_VALIDATION=true
rake aborted!
LoadError: cannot load such file -- /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc_c
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc.rb:37:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc.rb:37:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/errors.rb:30:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/errors.rb:30:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc.rb:32:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc.rb:32:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gitaly-0.5.0/ruby/lib/gitaly/commit_services_pb.rb:4:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gitaly-0.5.0/ruby/lib/gitaly.rb:6:in `<top (required)>'
/home/git/gitlab/config/application.rb:5:in `<top (required)>'
/home/git/gitlab/Rakefile:5:in `require'
/home/git/gitlab/Rakefile:5:in `<top (required)>'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
I think it may be ruby's error, but I don't know about ruby...
How I solve this problem?
Thanks :)
I solved it.
Through the log, there is no grpc_c file.
LoadError: cannot load such file -- /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc_c
So I installed ruby (same version) to root account.
And I installed gem, and grpc.
In the grpc path,
/usr/local/lib/ruby/gems/2.3.0/gems/grpc-1.1.2
there is "grpc_c.so" shared library file. Hence, I copied it and solved the problem.
I am trying to run a Ruby app with the rest-client gem install. I keep getting the error message:
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows/root_certs.rb:2:in `require': cannot load such file -- ffi (LoadError)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows/root_certs.rb:2:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `require_relative'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient.rb:16:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient.rb:16:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/rest-client.rb:2:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/rest-client.rb:2:in `<top (required)>'
from app.rb:6:in `require'
from app.rb:6:in `<main>'
$ ./start ruby
Installing bundle
Starting server
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows/root_certs.rb:2:in `require': cannot load such file -- ffi (LoadError)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows/root_certs.rb:2:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `require_relative'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient.rb:16:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient.rb:16:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/rest-client.rb:2:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/rest-client.rb:2:in `<top (required)>'
from app.rb:6:in `require'
from app.rb:6:in `<main>'
However I am sure that the gem is install:
rest-client (2.0.0.rc2, 1.8.0)
rest-open-uri (1.0.0)
rest_client (1.8.3)
Does anyone know possibly what I am doing wrong in the installation process?
The issue was the that FFI was not install and was the reason I was getting error messages. unfortunately using
bundle install
did not install it correct and I had to install the gem manually (which takes much longer than expected to install
gem install ffi
I'm trying to run the command
thin -R lat.ru start
in the directory 50web\servers\dev (lat.ru is part of the open source project 50web).
I get the following error:
D:\dev\derek\50web\servers\dev>thin -R lat.ru start
C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': ca
nnot load such file -- 2.1/pg_ext (LoadError)
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/pg-0.18.4/lib/pg.rb:14:in `rescu
e in <top (required)>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/pg-0.18.4/lib/pg.rb:3:in `<top (
required)>'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in
`require'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in
`rescue in require'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in
`require'
from C:/Ruby21/lib/ruby/site_ruby/2.1.0/getdb.rb:11:in `<top (required)>
'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from D:/dev/derek/50web/routes/lat.rb:2:in `<top (required)>'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from lat.ru:3:in `block in <main>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:5
5:in `instance_eval'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:5
5:in `initialize'
from lat.ru:1:in `new'
from lat.ru:1:in `<main>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/load
er.rb:33:in `eval'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/load
er.rb:33:in `load'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/
controller.rb:182:in `load_rackup_config'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/
controller.rb:72:in `start'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:20
0:in `run_command'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:15
6:in `run!'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/bin/thin:6:in `<top (
required)>'
from C:/Ruby21/bin/thin:23:in `load'
from C:/Ruby21/bin/thin:23:in `<main>'
I'm using pg 0.18.4, which seems like the most recent version:
D:\dev\derek\50web\servers\dev>gem list pg
*** LOCAL GEMS ***
pg (0.18.4)
D:\dev\derek\50web\servers\dev>gem update pg
Updating installed gems
Nothing to update
Ruby version is 2.1.7p400 (2015-08-18 revision 51632) [i386-mingw32].
How can I fix this error?
Update 1 (02.02.2016 08:08 MSK):
I've to run the same project on a different machine:
C:\usr\dp\dev\derek\50web\servers\dev>ruby lat.ru
C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- 2.2/pg_ext (LoadError)
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/pg-0.18.4/lib/pg.rb:14:in `rescue in <top (required)>'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/pg-0.18.4/lib/pg.rb:3:in `<top (required)>'
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
I noticed that Ruby seems to look for the pg_ext file in 2.2/pg_ext directory, whereas in reality it's installed in the C:\Ruby22\lib\ruby\gems\2.2.0\gems\pg-0.18.4\lib directory.
It looks like installation of C-extension part of pg gem is broken.
make sure postgresql development libraries are installed
reinstall pg gem and see if there are no error messages
Reinstallation with -f force flag, or better gem uninstall and gem install anew.
I fixed the error by uninstalling the pg gem and re-installing it using gem install pg --pre command. It's necessary because of a bug, which hasn't been fixed in the release version yet.
Trying to install gem rubyracer and gem execjs for reasons I can't remember.
Probably because I'm trying to deploy a jekyll site which is having major issues displaying on server.
So, tried running jekyll --server
Get this error:
/usr/local/rvm/gems/ruby-2.1.2/gems/execjs-2.2.1/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /usr/local/rvm/gems/ruby-2.1.2/gems/execjs-2.2.1/lib/execjs.rb:5:in `<module:ExecJS>'
from /usr/local/rvm/gems/ruby-2.1.2/gems/execjs-2.2.1/lib/execjs.rb:4:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/jekyll-coffeescript-1.0.0/lib/jekyll-coffeescript.rb:2:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/jekyll-2.1.0/lib/jekyll.rb:75:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/jekyll-2.1.0/bin/jekyll:6:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/bin/jekyll:23:in `load'
from /usr/local/rvm/gems/ruby-2.1.2/bin/jekyll:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
So, hence the installation attempt of rubyracer and execjs
This is what I get when I try to install them (message is identical for both):
/usr/local/rvm/rubies/ruby-2.1.2/bin/gem:8:in `require': no such file to load -- rubygems (LoadError)
from /usr/local/rvm/rubies/ruby-2.1.2/bin/gem:8
Environment is linux server. Not my laptop.
additional information
which jekyll gets this: /usr/local/rvm/gems/ruby-2.1.2/bin/jekyll
echo $PATH gets this:
/usr/local/rvm/gems/ruby-2.1.2/bin:/usr/local/rvm/gems/ruby-2.1.2#global/bin:/usr/local/rvm/rubies/ruby-2.1.2/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/rvm/bin:/home/coffee/bin
ruby -v gets this: ruby 2.1.2p95 (2014-05-08 revision 45877) [i686-linux]
which ruby gets this: usr/local/rvm/rubies/ruby-2.1.2/bin/ruby
jekyll --server is deprecated, you can use jekyll serve.
I guess that it something wrong with your RVM. Try to remove it with rvm implode and install it again.