Betül SARAL

Bilgisayar Mühendisi

Rails Therubyracer Gem Kurulum Problemi

| Comments

Deponuzda gemfile içerisinde therubyracer gem kurulumunda eğer aşağıdaki gibi bir kurulum hatası alıyorsanız ;

Terminal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

		/usr/bin/ruby1.9.1 extconf.rb
*** 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/ruby1.9.1
extconf.rb:15:in <main>: undefined method include_path for Libv8:Module (NoMethodError)


Gem files will remain installed in /home/uzem/.bundler/tmp/8120/gems/therubyracer-0.10.1 for inspection.
Results logged to /home/uzem/.bundler/tmp/8120/gems/therubyracer-0.10.1/ext/v8/gem_make.out

An error occurred while installing therubyracer (0.10.1), and Bundler cannot continue.
Make sure that gem install therubyracer -v '0.10.1'succeeds before bundling.

aşağıdaki kodlar bu sorunu ortadan kaldırır.

Terminal
1
$ sudo gem uninstall libv8

çıktı aşağıdaki gibiyse 3 ‘e basıp devam ediniz ;

Select gem to uninstall:
 1. libv8-3.3.10.4-x86-linux
 2. libv8-3.11.8.4
 3. All versions
 > 3 

en son olarak da

Terminal
1
$ sudo gem install therubyracer
Terminal
1
$ bundle install

sorunumuz çözüldü.

Comments