Development Tip

Jekyll 설치 오류-기본 확장 빌드

yourdevel 2020. 11. 25. 21:19
반응형

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에 개발자 도구를 설치하는 방법에 대한 링크는 아래 설명을 참조하십시오.


우분투

  1. sudo apt-get install ruby-dev
  2. 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에서 이것을 따랐다.

  1. sudo apt install build-essential
  2. sudo apt install ruby-dev
  3. 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

  1. install xcode
  2. type xcode-select --install in the command line
  3. 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:

  1. install ruby on Mac OS X with RVM
  2. 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

반응형