2017-10-18 1 views
0

지킬 설치에 문제가 있습니다. 누락 된 링크를 패치하는 방법을 알아낼 수 없습니다.jekyll을 설치하려고 할 때 오류가 표시됩니다.

을 Heres 전체 게시물 :

루비가 설치되어

[email protected]:~# gem install jekyll 
Building native extensions. This could take a while... 
ERROR: Error installing jekyll: 
ERROR: Failed to build gem native extension. 

/usr/bin/ruby2.1 extconf.rb 
checking for ffi.h... *** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of necessary 
libraries and/or headers. Check the mkmf.log file for more details. You may 
need configuration options. 

Provided configuration options: 
     --with-opt-dir 
     --without-opt-dir 
     --with-opt-include 
     --without-opt-include=${opt-dir}/include 
     --with-opt-lib 
     --without-opt-lib=${opt-dir}/lib 
     --with-make-prog 
     --without-make-prog 
     --srcdir=. 
     --curdir 
     --ruby=/usr/bin/ruby2.1 
     --with-ffi_c-dir 
     --without-ffi_c-dir 
     --with-ffi_c-include 
     --without-ffi_c-include=${ffi_c-dir}/include 
     --with-ffi_c-lib 
     --without-ffi_c-lib=${ffi_c-dir}/lib 
     --with-libffi-config 
     --without-libffi-config 
     --with-pkg-config 
     --without-pkg-config 
/usr/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) 
You have to install development tools first. 
     from /usr/lib/ruby/2.1.0/mkmf.rb:587:in `try_cpp' 
     from /usr/lib/ruby/2.1.0/mkmf.rb:1067:in `block in have_header' 
     from /usr/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for' 
     from /usr/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone' 
     from /usr/lib/ruby/2.1.0/mkmf.rb:321:in `open' 
     from /usr/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone' 
     from /usr/lib/ruby/2.1.0/mkmf.rb:321:in `open' 
     from /usr/lib/ruby/2.1.0/mkmf.rb:347:in `postpone' 
     from /usr/lib/ruby/2.1.0/mkmf.rb:917:in `checking_for' 
     from /usr/lib/ruby/2.1.0/mkmf.rb:1066:in `have_header' 
     from extconf.rb:16:in `<main>' 

extconf failed, exit code 1 

Gem files will remain installed in /var/lib/gems/2.1.0/gems/ffi-1.9.18 for inspection. 
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0 

/ffi-1.9.18/gem_make.out 강력한 텍스트 : Debain 8

를 설치

[email protected]:~# ruby -v 
ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu] 

- 

아파치가 설치됩니다 : 당신은 아이디어가 있다면 당신은 나에게 그것을 전달하는 경우

[email protected]:~# apache2 -v 
Server version: Apache/2.4.10 (Debian) 
Server built: Sep 20 2017 04:37:43 

나는 기쁠 것이다. 사전에

기타 이미 덕분에 시간

로빈

답변

0

이러한 오류는 일반적으로 당신이 빌드 도구가 설치되지 않은 것을 의미한다. 지금까지 내가 당신이

apt-get install build-essential 

이 명령은 뎁 -베이스 배포판입니다 뭔가를 실행할 수 있도록 당신이 리눅스를 사용하고 이해한다. 그래서 당신이 다른 배포판을 사용한다면 비슷한 것을 사용할 수 있습니다.

0

설치하는 동안 동일한 오류가 발생했습니다. Ruby devpackacke를 설치해야합니다 :

sudo apt-get install ruby2.4-dev 

2.4 용 개발 패키지가 설치됩니다. 이 버전을 사용하면서 2.1을 설치해야합니다. 나는 저장소가 패키지를 찾을 수 없다는 문제가 있었다. 그래서 나는 다음과 같은 PPA를 사용 :

$ sudo apt-add-repository ppa:brightbox/ruby-ng 
$ sudo apt-get update 

https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng

버전 2.1이 저장소 형태로도 주문 가능합니다.

+0

apt-add-repository가 사용 가능한 명령이 아닙니다. –

관련 문제