Skip to content

Could not open library 'libcurl' (ruby 2.3.1) #23

@kholdrex

Description

@kholdrex

i have such error when i do nanobox run rails s

/app/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.10/lib/ffi/library.rb:133:in `block in ffi_lib': Could not open library 'libcurl': libcurl: cannot open shared object file: No such file or directory. (LoadError)
Could not open library 'libcurl.so': libcurl.so: cannot open shared object file: No such file or directory.
Could not open library 'libcurl.so.4': libcurl.so.4: cannot open shared object file: No such file or directory

i added extra steps into my boxfile

  extra_steps:
    - sudo apt-get update && sudo apt-get -y install libcurl4-openssl-dev libgmp-dev libcurl3

but it doesn't work... when i use nanobox run and install these packages manually it works

my boxfile.yml

run.config:
  engine: ruby
  engine.config:
    runtime: ruby-2.3
  cache_dirs:
    - vendor
    - packages
    - node_modules
  extra_path_dirs:
    - node_modules/.bin
  extra_packages:
    - nginx
    - nodejs-6.2
    - newrelic-6.3

  # Build Triggers - Changes to these files automatically
  # trigger a new build the next time a build is required.
  build_triggers:
    - Gemfile
    - Gemfile.lock
    - package.json

  extra_steps:
    - sudo apt-get update && sudo apt-get -y install libcurl4-openssl-dev libgmp-dev libcurl3
    - npm install
    - redis-server --daemonize yes

deploy.config:
  extra_steps:
    - rake assets:precompile
  transform:
    - 'bundle exec rake fix-yaml'

web.site:
  start: 'bundle exec ruby config/passenger.rb'

data.db:
  image: nanobox/postgresql:9.5
  extra_packages:
    - curl

data.queue:
  image: nanobox/redis:3.0

with ruby 2.2 it works fine, but for 2.3 it doesn't... can somebody check it please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions