[ask] ERROR: Failed to build gem native extension libarchive


Status
Not open for further replies.

xpreborn

Apprentice 1.0
Hallo teman-teman, selamat siang semuanya
Saya lagi install dan mengikuti step yg ada pada link ini https://github.com/openwisp/OpenWISP-Manager/wiki/Installationinstructions
namun saya menemukan error saat step menjalankan perintah yg ini
bundle install --deployment
error : http://postimg.org/image/y2ls03s6t/
lalu saya coba test install libarchive sesuai yg di sarankan tapi tetap error juga :
http://postimg.org/image/m6bn7bxgh/
http://postimg.org/image/5of5g3qrp/
tapi saat dilihat dari foldernya harusnya sdh ada libarchive
http://postimg.org/image/6m0bqo5yx/

saya coba search dan dapat yg mirip2 kendalanya tapi sudah dicoba tetap sama juga
https://github.com/openwisp/OpenWISP-Manager/issues/25
http://stackoverflow.com/questions/22544754/failed-to-build-gem-native-extension-installing-compass

Mohon sarannya teman2 kira2 untuk solusi saran/referensi untuk fixnya,
 

xpreborn

Apprentice 1.0
Masih nyangkut di masalah yang sama Mas

Could not find libarchive-0.1.2 in any of the sources
Run `bundle install` to install missing gems.

lalu saya jalankan : bundle install
muncul error :
Could not find libarchive-0.1.2 in any of the sources
Run `bundle install` to install missing gems.
Using columnize 0.3.3
Using exception_notification 2.3.3.0
Using geokit 1.6.0
Using i18n 0.4.2
Installing libarchive 0.1.2 with native extensions

Gem::Ext:uildError: ERROR: Failed to build gem native extension.

/root/.rbenv/versions/2.2.1/bin/ruby -r ./siteconf20150823-27515-n3izdc.rb extconf.rb
checking for gcc... gcc
checking for C compiler default output file name... a.out

blablablabla
blablablabla
blablablabla

*** 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=/root/.rbenv/versions/2.2.1/bin/$(RUBY_BASE_NAME)

extconf failed, exit code 1

Gem files will remain installed in /var/www/html/owm/vendor/bundle/ruby/2.2.0/gems/libarchive-0.1.2 for inspection.
Results logged to /var/www/html/owm/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/libarchive-0.1.2/gem_make.out
An error occurred while installing libarchive (0.1.2), and Bundler cannot continue.
Make sure that `gem install libarchive -v '0.1.2'` succeeds before bundling.


ada Saran mas @junior riau
 

junior riau

Hosting Guru
Verified Provider
Status
Not open for further replies.

Top