Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1160  / 1 Year ago, wed, march 15, 2023, 10:34:35

after upgrading to 14.04, Ruby was downgraded to 1.8.3 so I tried to upgrade using the following commands.



sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.1
rvm use 2.1.1 --default
ruby -v


After that i ran



sudo gem install jekyll


It was installed sucessfully but, I am not able to use it is says



bash: /usr/local/bin/jekyll: /usr/bin/ruby1.9.1: bad interpreter: No such file or directory

More From » ruby

 Answers
6

Install ruby1.9.1-dev for Jekyll



sudo apt-get install ruby1.9.1-dev


If you have other version of Ruby, remove it first.



i.e for Ruby 2.0



sudo apt-get purge ruby2.0*

[#25939] Wednesday, March 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
freezidepu

Total Points: 394
Total Questions: 105
Total Answers: 118

Location: Libya
Member since Mon, Dec 7, 2020
3 Years ago
freezidepu questions
Tue, Apr 19, 22, 16:03, 2 Years ago
Fri, Nov 11, 22, 18:04, 2 Years ago
Sat, Mar 18, 23, 10:59, 1 Year ago
;