Problem running in Jekyll. Installation
I have installed Ruby, RubyGems and then Jekyll, but when I run Jekyll I'm getting this error.
$ jekyll serve
/var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:365:in `require_program': program version required (Commander::Runner::CommandError)
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/import.rb:10
from /usr/local/bin/jekyll:19
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll/filters.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll.rb:43
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/jekyll:7
from /usr/local/bin/jekyll:19:in `load'
from /usr/local/bin/jekyll:19
somasundaram@somasundaram-Inspiron-3521:~/allfiles/msomu/msomu.github.io$ ^C
somasundaram@somasundaram-Inspiron-3521:~/allfiles/msomu/msomu.github.io$ jekyll/var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:365:in `require_program': program version required (Commander::Runner::CommandError)
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/import.rb:10
from /usr/local/bin/jekyll:19
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll/filters.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll.rb:43
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/jekyll:7
from /usr/local/bin/jekyll:19:in `load'
from /usr/local/bin/jekyll:19
Also if there is no way to fix it please help me if someone tells me how to completely remove Ruby, RubyGems Jekyll and fresh install it or fix this error.
jekyll
add a comment |
I have installed Ruby, RubyGems and then Jekyll, but when I run Jekyll I'm getting this error.
$ jekyll serve
/var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:365:in `require_program': program version required (Commander::Runner::CommandError)
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/import.rb:10
from /usr/local/bin/jekyll:19
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll/filters.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll.rb:43
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/jekyll:7
from /usr/local/bin/jekyll:19:in `load'
from /usr/local/bin/jekyll:19
somasundaram@somasundaram-Inspiron-3521:~/allfiles/msomu/msomu.github.io$ ^C
somasundaram@somasundaram-Inspiron-3521:~/allfiles/msomu/msomu.github.io$ jekyll/var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:365:in `require_program': program version required (Commander::Runner::CommandError)
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/import.rb:10
from /usr/local/bin/jekyll:19
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll/filters.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll.rb:43
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/jekyll:7
from /usr/local/bin/jekyll:19:in `load'
from /usr/local/bin/jekyll:19
Also if there is no way to fix it please help me if someone tells me how to completely remove Ruby, RubyGems Jekyll and fresh install it or fix this error.
jekyll
So are you on a mac? Did you install xcode command line tools?
– aharris88
Nov 23 '13 at 22:38
I'm using Ubuntu 12.04 LTS on Dell
– Somasundaram Mahesh
Nov 24 '13 at 15:40
Did you run "jekyll build" first?
– aharris88
Nov 24 '13 at 23:30
Same problem on Centos 6.4, will come back here if I find something.
– Kev
Nov 25 '13 at 11:51
To solve this error I have reinstalled ruby completely, using RVM this time. I'm on centos but I'll write a summary of the commands I've ran, that could be useful to someone:curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh // this can change
rvm requirements
rvm install ruby-2.0.0-p353
rvm use 2.0.0 --default
rvm rubygems current
– Kev
Nov 25 '13 at 12:20
add a comment |
I have installed Ruby, RubyGems and then Jekyll, but when I run Jekyll I'm getting this error.
$ jekyll serve
/var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:365:in `require_program': program version required (Commander::Runner::CommandError)
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/import.rb:10
from /usr/local/bin/jekyll:19
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll/filters.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll.rb:43
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/jekyll:7
from /usr/local/bin/jekyll:19:in `load'
from /usr/local/bin/jekyll:19
somasundaram@somasundaram-Inspiron-3521:~/allfiles/msomu/msomu.github.io$ ^C
somasundaram@somasundaram-Inspiron-3521:~/allfiles/msomu/msomu.github.io$ jekyll/var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:365:in `require_program': program version required (Commander::Runner::CommandError)
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/import.rb:10
from /usr/local/bin/jekyll:19
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll/filters.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll.rb:43
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/jekyll:7
from /usr/local/bin/jekyll:19:in `load'
from /usr/local/bin/jekyll:19
Also if there is no way to fix it please help me if someone tells me how to completely remove Ruby, RubyGems Jekyll and fresh install it or fix this error.
jekyll
I have installed Ruby, RubyGems and then Jekyll, but when I run Jekyll I'm getting this error.
$ jekyll serve
/var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:365:in `require_program': program version required (Commander::Runner::CommandError)
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/import.rb:10
from /usr/local/bin/jekyll:19
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll/filters.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll.rb:43
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/jekyll:7
from /usr/local/bin/jekyll:19:in `load'
from /usr/local/bin/jekyll:19
somasundaram@somasundaram-Inspiron-3521:~/allfiles/msomu/msomu.github.io$ ^C
somasundaram@somasundaram-Inspiron-3521:~/allfiles/msomu/msomu.github.io$ jekyll/var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:365:in `require_program': program version required (Commander::Runner::CommandError)
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
from /var/lib/gems/1.8/gems/commander-4.1.5/lib/commander/import.rb:10
from /usr/local/bin/jekyll:19
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll/filters.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/../lib/jekyll.rb:43
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/jekyll-1.3.0/bin/jekyll:7
from /usr/local/bin/jekyll:19:in `load'
from /usr/local/bin/jekyll:19
Also if there is no way to fix it please help me if someone tells me how to completely remove Ruby, RubyGems Jekyll and fresh install it or fix this error.
jekyll
jekyll
asked Nov 23 '13 at 7:44
Somasundaram MaheshSomasundaram Mahesh
1065
1065
So are you on a mac? Did you install xcode command line tools?
– aharris88
Nov 23 '13 at 22:38
I'm using Ubuntu 12.04 LTS on Dell
– Somasundaram Mahesh
Nov 24 '13 at 15:40
Did you run "jekyll build" first?
– aharris88
Nov 24 '13 at 23:30
Same problem on Centos 6.4, will come back here if I find something.
– Kev
Nov 25 '13 at 11:51
To solve this error I have reinstalled ruby completely, using RVM this time. I'm on centos but I'll write a summary of the commands I've ran, that could be useful to someone:curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh // this can change
rvm requirements
rvm install ruby-2.0.0-p353
rvm use 2.0.0 --default
rvm rubygems current
– Kev
Nov 25 '13 at 12:20
add a comment |
So are you on a mac? Did you install xcode command line tools?
– aharris88
Nov 23 '13 at 22:38
I'm using Ubuntu 12.04 LTS on Dell
– Somasundaram Mahesh
Nov 24 '13 at 15:40
Did you run "jekyll build" first?
– aharris88
Nov 24 '13 at 23:30
Same problem on Centos 6.4, will come back here if I find something.
– Kev
Nov 25 '13 at 11:51
To solve this error I have reinstalled ruby completely, using RVM this time. I'm on centos but I'll write a summary of the commands I've ran, that could be useful to someone:curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh // this can change
rvm requirements
rvm install ruby-2.0.0-p353
rvm use 2.0.0 --default
rvm rubygems current
– Kev
Nov 25 '13 at 12:20
So are you on a mac? Did you install xcode command line tools?
– aharris88
Nov 23 '13 at 22:38
So are you on a mac? Did you install xcode command line tools?
– aharris88
Nov 23 '13 at 22:38
I'm using Ubuntu 12.04 LTS on Dell
– Somasundaram Mahesh
Nov 24 '13 at 15:40
I'm using Ubuntu 12.04 LTS on Dell
– Somasundaram Mahesh
Nov 24 '13 at 15:40
Did you run "jekyll build" first?
– aharris88
Nov 24 '13 at 23:30
Did you run "jekyll build" first?
– aharris88
Nov 24 '13 at 23:30
Same problem on Centos 6.4, will come back here if I find something.
– Kev
Nov 25 '13 at 11:51
Same problem on Centos 6.4, will come back here if I find something.
– Kev
Nov 25 '13 at 11:51
To solve this error I have reinstalled ruby completely, using RVM this time. I'm on centos but I'll write a summary of the commands I've ran, that could be useful to someone:
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh // this can change
rvm requirements
rvm install ruby-2.0.0-p353
rvm use 2.0.0 --default
rvm rubygems current
– Kev
Nov 25 '13 at 12:20
To solve this error I have reinstalled ruby completely, using RVM this time. I'm on centos but I'll write a summary of the commands I've ran, that could be useful to someone:
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh // this can change
rvm requirements
rvm install ruby-2.0.0-p353
rvm use 2.0.0 --default
rvm rubygems current
– Kev
Nov 25 '13 at 12:20
add a comment |
2 Answers
2
active
oldest
votes
I had the same error as you and after installing the JSON gem by sudo gem install json
I had no problems. https://stackoverflow.com/questions/19788258/error-when-running-jekyll-new-command
add a comment |
after following these instructions https://computingforgeeks.com/how-to-install-jekyll-on-ubuntu-18-04/
I got this error.
johnbolan@JohnBolan-Gazelle-Professional:~$ sudo gem install json
Fetching: json-2.2.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
/usr/bin/ruby2.5 -r ./siteconf20190310-20142-vqot9r.rb extconf.rb
creating Makefile
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR=" clean
sh: 1: make: not found
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR="
sh: 1: make: not found
make failed, exit code 127
Gem files will remain installed in /var/lib/gems/2.5.0/gems/json-2.2.0 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/json-2.2.0/gem_make.out
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f381080%2fproblem-running-in-jekyll-installation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had the same error as you and after installing the JSON gem by sudo gem install json
I had no problems. https://stackoverflow.com/questions/19788258/error-when-running-jekyll-new-command
add a comment |
I had the same error as you and after installing the JSON gem by sudo gem install json
I had no problems. https://stackoverflow.com/questions/19788258/error-when-running-jekyll-new-command
add a comment |
I had the same error as you and after installing the JSON gem by sudo gem install json
I had no problems. https://stackoverflow.com/questions/19788258/error-when-running-jekyll-new-command
I had the same error as you and after installing the JSON gem by sudo gem install json
I had no problems. https://stackoverflow.com/questions/19788258/error-when-running-jekyll-new-command
edited May 23 '17 at 12:39
Community♦
1
1
answered Dec 23 '13 at 22:30
Will.Will.
545513
545513
add a comment |
add a comment |
after following these instructions https://computingforgeeks.com/how-to-install-jekyll-on-ubuntu-18-04/
I got this error.
johnbolan@JohnBolan-Gazelle-Professional:~$ sudo gem install json
Fetching: json-2.2.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
/usr/bin/ruby2.5 -r ./siteconf20190310-20142-vqot9r.rb extconf.rb
creating Makefile
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR=" clean
sh: 1: make: not found
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR="
sh: 1: make: not found
make failed, exit code 127
Gem files will remain installed in /var/lib/gems/2.5.0/gems/json-2.2.0 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/json-2.2.0/gem_make.out
New contributor
add a comment |
after following these instructions https://computingforgeeks.com/how-to-install-jekyll-on-ubuntu-18-04/
I got this error.
johnbolan@JohnBolan-Gazelle-Professional:~$ sudo gem install json
Fetching: json-2.2.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
/usr/bin/ruby2.5 -r ./siteconf20190310-20142-vqot9r.rb extconf.rb
creating Makefile
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR=" clean
sh: 1: make: not found
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR="
sh: 1: make: not found
make failed, exit code 127
Gem files will remain installed in /var/lib/gems/2.5.0/gems/json-2.2.0 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/json-2.2.0/gem_make.out
New contributor
add a comment |
after following these instructions https://computingforgeeks.com/how-to-install-jekyll-on-ubuntu-18-04/
I got this error.
johnbolan@JohnBolan-Gazelle-Professional:~$ sudo gem install json
Fetching: json-2.2.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
/usr/bin/ruby2.5 -r ./siteconf20190310-20142-vqot9r.rb extconf.rb
creating Makefile
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR=" clean
sh: 1: make: not found
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR="
sh: 1: make: not found
make failed, exit code 127
Gem files will remain installed in /var/lib/gems/2.5.0/gems/json-2.2.0 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/json-2.2.0/gem_make.out
New contributor
after following these instructions https://computingforgeeks.com/how-to-install-jekyll-on-ubuntu-18-04/
I got this error.
johnbolan@JohnBolan-Gazelle-Professional:~$ sudo gem install json
Fetching: json-2.2.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
/usr/bin/ruby2.5 -r ./siteconf20190310-20142-vqot9r.rb extconf.rb
creating Makefile
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR=" clean
sh: 1: make: not found
current directory: /var/lib/gems/2.5.0/gems/json-2.2.0/ext/json/ext/generator
make "DESTDIR="
sh: 1: make: not found
make failed, exit code 127
Gem files will remain installed in /var/lib/gems/2.5.0/gems/json-2.2.0 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/json-2.2.0/gem_make.out
New contributor
New contributor
answered 1 hour ago
John BolanJohn Bolan
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f381080%2fproblem-running-in-jekyll-installation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
So are you on a mac? Did you install xcode command line tools?
– aharris88
Nov 23 '13 at 22:38
I'm using Ubuntu 12.04 LTS on Dell
– Somasundaram Mahesh
Nov 24 '13 at 15:40
Did you run "jekyll build" first?
– aharris88
Nov 24 '13 at 23:30
Same problem on Centos 6.4, will come back here if I find something.
– Kev
Nov 25 '13 at 11:51
To solve this error I have reinstalled ruby completely, using RVM this time. I'm on centos but I'll write a summary of the commands I've ran, that could be useful to someone:
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh // this can change
rvm requirements
rvm install ruby-2.0.0-p353
rvm use 2.0.0 --default
rvm rubygems current
– Kev
Nov 25 '13 at 12:20