Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uncommon.mk Recipe for target 'build-ext' failed #5

Open
Morningstar88 opened this issue Aug 7, 2020 · 7 comments
Open

uncommon.mk Recipe for target 'build-ext' failed #5

Morningstar88 opened this issue Aug 7, 2020 · 7 comments

Comments

@Morningstar88
Copy link
Owner

Various Answers Here

rbenv/ruby-build#731

rbenv/ruby-build#1146

RoR Installation Main Doc

https://docs.google.com/document/d/1LJNsyG3RPPyyGqavcAkUWLFELuf7iwCsnqNonCKbbeU/edit

@Morningstar88
Copy link
Owner Author

Tried this, didn't work:

I also ran into this problem on ubuntu 14.10, I also solved it by sudo aptitude install libffi-dev.

@Morningstar88
Copy link
Owner Author

Morningstar88 commented Aug 7, 2020

Some good ideas here

rbenv/ruby-build#1146

@Morningstar88
Copy link
Owner Author

Trying this

I have not detected the root cause of the problem, I found a workaround:

  1. Build openssl from the source:
$ cd /tmp
$ curl -LO https://www.openssl.org/source/openssl-1.1.0f.tar.gz
$ tar xvfz openssl-1.1.0f.tar.gz
$ cd openssl-1.1.0f
$ ./config --prefix=/opt/openssl/1.1.0f
$ make
$ sudo make install
  1. Build ruby with CONFIGURE_OPTS environment variable:
$ CONFIGURE_OPTS="--with-openssl-dir=/opt/openssl/1.1.0f" rbenv install 2.4.2

[UPDATE]

You also need to install cacert.pem in order to make SSL connections:

$ sudo wget -O /opt/openssl/1.1.0f/ssl/cert.pem http://curl.haxx.se/ca/cacert.pem

@Morningstar88
Copy link
Owner Author

Morningstar88 commented Aug 7, 2020

Trying a shorter version:

for ruby >2.4

apt install libssl-dev
rbenv install 2.7.1

doesn't work

@Morningstar88
Copy link
Owner Author

Morningstar88 commented Aug 7, 2020

rbenv/ruby-build#1146 (comment)

I have not detected the root cause of the problem, I found a workaround:

  1. Build openssl from the source:
$ cd /tmp
$ curl -LO https://www.openssl.org/source/openssl-1.1.0f.tar.gz
$ tar xvfz openssl-1.1.0f.tar.gz
$ cd openssl-1.1.0f
$ ./config --prefix=/opt/openssl/1.1.0f
$ make
$ sudo make install
  1. Build ruby with CONFIGURE_OPTS environment variable:
$ CONFIGURE_OPTS="--with-openssl-dir=/opt/openssl/1.1.0f" rbenv install 2.4.2

[UPDATE]

You also need to install cacert.pem in order to make SSL connections:

$ sudo wget -O /opt/openssl/1.1.0f/ssl/cert.pem http://curl.haxx.se/ca/cacert.pem

@Morningstar88
Copy link
Owner Author

Morningstar88 commented Aug 7, 2020

According to a bug report, you shoud type:

$ sudo apt-get install gcc-6 g++-6
$ CC=/usr/bin/gcc-6 rbenv install 2.3.1

Doesn't work.

Unable to locate package gcc-6

https://unix.stackexchange.com/questions/566500/unable-to-locate-package-gcc-6-on-debian

@Morningstar88
Copy link
Owner Author

Morningstar88 commented Aug 7, 2020

Try: Build openssl from the source

I have not detected the root cause of the problem, I found a workaround:

  1. Build openssl from the source:
$ cd /tmp
$ curl -LO https://www.openssl.org/source/openssl-1.1.0f.tar.gz
$ tar xvfz openssl-1.1.0f.tar.gz
$ cd openssl-1.1.0f
$ ./config --prefix=/opt/openssl/1.1.0f
$ make
$ sudo make install
  1. Build ruby with CONFIGURE_OPTS environment variable:
$ CONFIGURE_OPTS="--with-openssl-dir=/opt/openssl/1.1.0f" rbenv install 2.4.2

Looks like it's working so far.

Trying:

[UPDATE]

You also need to install cacert.pem in order to make SSL connections:

$ sudo wget -O /opt/openssl/1.1.0f/ssl/cert.pem http://curl.haxx.se/ca/cacert.pem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant