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

Discussion in 'Desain Web dan Programming' started by xpreborn, 17 Aug 2015.

Thread Status:
Not open for further replies.
  1. xpreborn

    xpreborn Poster 2.0

    Messages:
    183
    Likes Received:
    4
    Trophy Points:
    18
    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,
     
  2. xpreborn

    xpreborn Poster 2.0

    Messages:
    183
    Likes Received:
    4
    Trophy Points:
    18
    OS Ubuntu 14.04.2 LTS 64
     
  3. junior riau

    junior riau Hosting Guru Web Hosting

    Messages:
    3,229
    Likes Received:
    515
    Trophy Points:
    113
    mau install ruby on rails ya? ruby nya 1.9.1
    non panel ya?
     
  4. xpreborn

    xpreborn Poster 2.0

    Messages:
    183
    Likes Received:
    4
    Trophy Points:
    18
    Benar mas tanpa panel install manual seperti dokumentasi dari webnya
     
  5. junior riau

    junior riau Hosting Guru Web Hosting

    Messages:
    3,229
    Likes Received:
    515
    Trophy Points:
    113
  6. xpreborn

    xpreborn Poster 2.0

    Messages:
    183
    Likes Received:
    4
    Trophy Points:
    18
    Baik Mas, akan saya coba
     
  7. xpreborn

    xpreborn Poster 2.0

    Messages:
    183
    Likes Received:
    4
    Trophy Points:
    18
    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
     
  8. junior riau

    junior riau Hosting Guru Web Hosting

    Messages:
    3,229
    Likes Received:
    515
    Trophy Points:
    113
    daftarkan nama gem nya di dalam Gemfile, hapus Gemfile.lock nya terus coba install lagi
     
    xpreborn likes this.
  9. xpreborn

    xpreborn Poster 2.0

    Messages:
    183
    Likes Received:
    4
    Trophy Points:
    18
    setelah dihapus jadi seperti ini Mas http://postimg.org/image/gr70j3gd5/
     
  10. junior riau

    junior riau Hosting Guru Web Hosting

    Messages:
    3,229
    Likes Received:
    515
    Trophy Points:
    113
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...