Jekyll 설치 오류-기본 확장 빌드
지킬 설치에 문제가 있습니다. 누락 된 링크를 패치하는 방법을 알 수 없습니다. Ruby에 대한 업데이트라고 생각하지만 RVM은 다른 버전의 Ruby도 설치하는 데 문제가 있습니다.
전체 게시물은 다음과 같습니다.
$ sudo gem install jekyll
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1/ext/gem_make.out
rvm을 통해 사용중인 Ruby 버전을 업데이트해야하나요?
문제는 시스템이 make가 어디에 있는지 모르거나 설치되어 있지 않다는 것입니다. 이 문제를 해결하는 가장 쉬운 방법 (그리고 루비 시스템을 설치하고 실행하려고 할 때 발생할 수있는 다른 문제)은 xcode를 설치하는 것입니다.
Lion의 경우 http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 에서 얻을 수 있습니다 . 또는 이전 버전의 경우 컴퓨터와 함께 CD로 제공됩니다.
Lion을 사용하는 경우 Lion에 개발자 도구를 설치하는 방법에 대한 링크는 아래 설명을 참조하십시오.
우분투
sudo apt-get install ruby-dev
gem install jekyll
나는 우분투에서 같은 오류가 있었고 이것은 내가 그것을 분류하는 데 도움 이 되었습니다.
ruby-dev가 설치되어 있어야합니다
apt-get install ruby-dev
XCode를 설치했는데 명령 줄 도구가 여전히 누락 된 경우 터미널로 이동하여
xcode-select --install
이러한 도구를 설치하라는 메시지가 표시됩니다. 그 후 SrBlanco의 답변을 따르십시오 . 그것은 나를 위해 문제를 해결했습니다.
행운을 빕니다.
"make"를 설치해야합니다. Ubuntu 12.10을 사용하고 있습니다. sudo apt-get install make
데비안 기반 배포판에서 작동합니다.
참고 :이 문제는 Mavericks가 사전 설치된 최신 MacBook Pro 모델에서도 발생합니다. Xcode가 전혀 포함되지 않은 내 솔루션으로 다른 게시물을 업데이트했습니다. 내 시스템에는 시스템을 구할 때 Xcode 개발자 도구가 설치되어있었습니다.
오류 : jekyll 설치 오류 : 오류 : gem 기본 확장을 빌드하지 못했습니다.
Xcode를 아직 설치하지 않은 경우 언급 한대로 설치 하십시오 ( https://developer.apple.com/xcode/ ). 또한 명령 줄 도구가 필요합니다.
Xcode를 엽니 다. 이동Preferences > Downloads > Install Command Line Tools
Xcode 용 명령 줄 도구를 설치하면 Mac에서 문제가 해결되었습니다.
xcode-select --install
.
- sudo apt-get install ruby-dev
- sudo gem install jekyll
이것이 도움이되기를 바랍니다.
Jekyll을 설치하려고 할 때 똑같은 오류가 발생했으며이 링크의 다음 단계가 도움이되었습니다. 다른 사람이 이것을 발견 할 경우를 대비하여!
http://davidensinger.com/2013/03/installing-jekyll/
Fedora 22 설정에서 동일한 문제에 직면했습니다. 나는했다 ruby
설치되어 있지만이 없었다 ruby-devel
. 설치 ruby-devel
하면 문제가 해결되었습니다.
dnf install -y ruby-devel
이전 시스템의 경우 :
yum install -y ruby-devel
나는 Ubuntu / Linux Mint에서 이것을 따랐다.
sudo apt install build-essential
sudo apt install ruby-dev
sudo gem install jekyll
부록 : Mountain Lion 의 App Store 에서 지금 XCode 를 설치할 수 있습니다 . 이 과정은 투명하고 매우 빠릅니다.
당신에게도 같은 문제가있었습니다.
저는 Mac OS X 10.9 개발 미리보기 버전을 사용하고 있으며 gcc와 Xcode를 설치했습니다.
하지만 내 Xcode 버전은 4.6입니다.
그런 다음 Xcode 5.0을 설치합니다.
그런 sudo gem install jekyll
다음 터미널을 다시 입력 합니다. 그런 다음 작동합니다.
누군가를 도울 수 있기를 바랍니다.
Installing Xcode and going to perferencs > downloads > install commandline tools WORKS!
Same problem on Debian, I had forgot to run this command:
~/.rvm/scripts/rvm
All these answers did NOT work for me.
If you're looking for a solution on ubuntu 14.04, do this:
sudo apt-get install ruby1.9.1-dev zlib1g-dev nodejs
sudo gem install jekyll -v 2.5.3
Unfortunately, nodejs is required because of a bug in Jekyll that enforces existence of runtime JS engine even though it doesn't need one.
For Ubuntu, this helped in my case:
apt-get install libffi-dev
A general advice is to just follow what is displayed as the reason for the error and hopefully you'll be provided with a log file in which the first line suggests which package should be installed, in my case:
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.21/mkmf.log
MacOS
my solution to this problem
- install xcode
- type
xcode-select --install
in the command line - type
sudo gem install jekyll
in the command line
PS: It is the combination of the two answers in this question.
You are missing the ruby-dev file , just go ahead and run this command - sudo apt-get install ruby-dev
Hope this helps!!
I had the same issue on my macOS(10.14.2), the reason may be:
Apparently with OSX el Capitan, there is a new security function that prevents you from modifying system files called Rootless.
My solution is using rvm:
- install ruby on Mac OS X with RVM
- gem install jekyll
On windows I have this issue
I actually installed the version rubyinstaller-devkit-2.6.3-1-x64 of ruby
I have removed the ruby completely and Installed the rubyinstaller-devkit-2.5.5-1-x64
and issued the following commands on powershell
gem install bundler
gem install jekyll
and this time no errors where found
I had this issue and of all things, the error was occurring because I hadn't agreed to some updated terms of service in xcode. Running the following did the trick for me. Go figure.
sudo xcodebuild -license accept
참고URL : https://stackoverflow.com/questions/10725767/error-installing-jekyll-native-extension-build
'Development Tip' 카테고리의 다른 글
nan 값을 0으로 변환 (0) | 2020.11.25 |
---|---|
주어진 값이 양수인지 음수인지 확인하는 방법은 무엇입니까? (0) | 2020.11.25 |
뒤로 버튼을 감지하지만 dialogfragment를 닫지 않음 (0) | 2020.11.25 |
android.support.v7.internal.widget.ActionBarOverlayLayout을 인스턴스화 할 수 없습니다. (0) | 2020.11.25 |
정수가 주어진 범위에 있는지 확인하는 방법은 무엇입니까? (0) | 2020.11.25 |