루비 온 레일즈에서 html 파싱에 사용하는 Nokogiri를 설치할 때 아래처럼 libxslt 관련 오류가 발생하면 libxslt를 설치해주면 됩니다.
아아... 고난과 역경의 연속이군요. OTL....
Installing nokogiri (1.5.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... no
-----
libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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=.
설치 방법은 다음과 같습니다.
sudo apt-get install libxslt-dev libxml2-dev
아아... 고난과 역경의 연속이군요. OTL....
'프로그래밍(Programming) > 루비(Ruby)' 카테고리의 다른 글
pre 태그 내부에 글이 길 경우 자동으로 줄바꿈을 해주는 방법 (2) | 2012.02.12 |
---|---|
메타 태그(Meta Tag)를 이용해서 내 웹페이지를 모바일 브라우저에 예쁘게 표시하기 (3) | 2012.02.05 |
루비 온 레일즈(Ruby on Rails)에서 bundle package했을 때 mysql2 관련 에러 해결하는 방법 (0) | 2012.01.28 |
Ubuntu 11.04에서 rails server를 실행했을 때 JavaScript runtime error 발생하는 경우 해결책... (0) | 2012.01.28 |
Ubuntu 11.04에서 Rails 3.2.1 설치 후 sqlite3.h 가 없다고 오류날 때... (0) | 2012.01.28 |