etscrivner / rbsecp256k1

Compiled Ruby wrapper around libsecp256k1 for secp256k1 ECDSA.
The Unlicense
19 stars 13 forks source link

Permission denied - ./autogen.sh (Errno::EACCES) #51

Closed akodkod closed 2 years ago

akodkod commented 4 years ago

When I'm trying to install gem I'm getting this error.

I've fixed it by adding chmod +x ./autogen.sh, but I think it would be nice to add it into repo.

Error:

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

    current directory: /Users/a.emelianenko/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/rbsecp256k1-5.0.0/ext/rbsecp256k1
/Users/a.emelianenko/.rbenv/versions/2.7.0/bin/ruby -I /Users/a.emelianenko/.rbenv/versions/2.7.0/lib/ruby/2.7.0 -r
./siteconf20200315-38140-1t7blox.rb extconf.rb
Downloading libsecp256k1.zip 
Running 'autogen' for libsecp256k1 0.0.0... *** 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=/Users/a.emelianenko/.rbenv/versions/2.7.0/bin/$(RUBY_BASE_NAME)
        --with-system-library
        --without-system-library
/Users/a.emelianenko/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:380:in `spawn':
Permission denied - ./autogen.sh (Errno::EACCES)
from /Users/a.emelianenko/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:380:in
`block in execute'
from /Users/a.emelianenko/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:373:in
`chdir'
from /Users/a.emelianenko/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:373:in
`execute'
        from extconf.rb:41:in `configure'
from /Users/a.emelianenko/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:153:in
`cook'
        from extconf.rb:82:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /Users/a.emelianenko/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/rbsecp256k1-5.0.0 for inspection.
Results logged to
/Users/a.emelianenko/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-19/2.7.0/rbsecp256k1-5.0.0/gem_make.out

An error occurred while installing rbsecp256k1 (5.0.0), and Bundler cannot continue.
Make sure that `gem install rbsecp256k1 -v '5.0.0' --source 'https://rubygems.org/'` succeeds before bundling.