Open zatkowich opened 4 years ago
@zatkowich This is very weird as the GitHub Actions' container can successfully build it. Which rubyc version/binary were you using? Which Ubuntu 20.04 Docker container was it? Could you provide more details/steps so that I can try reproducing it in my local development environment? Thank you very much!
I have a similar issue using the a vanilla ubuntu:focal image from docker hub. github actions uses a custom Ubuntu 20.04 virtual machine with a large amount of installed tools, usually not coming from the ubuntu repositories: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
While I didn't have time to deal with this issue either Ubuntu or packer update seems to solve it. Now I'm able to build a binary, however with some additional stuff. Please consider adding the dependencies to documentation.
See an entrypoint script for using rubyc under Ubuntu 20.04 Docker container:
#!/bin/sh
apt update
apt install -y bison build-essential clang curl libssl-dev ruby squashfs-tools
cpan FindBin
rubycPath='/usr/local/bin/rubyc'
rubycUrl='https://gw.alipayobjects.com/os/enclose-prod/1fd23e6b-d48f-4ed0-94dd-f0f539960253/rubyc-v0.4.0-linux-x64.gz'
curl ${rubycUrl} | zcat > ${rubycPath}
chmod +x ${rubycPath}
Ok, sorry, this works only for a stable version. If you use the Docker workflow from the previous post with v2.7.1.dev it fails:
#!/bin/sh
apt update
apt install -y bison build-essential clang libssl-dev ruby squashfs-tools wget zlib-dev
cpan FindBin
rubycPath='/usr/local/bin/rubyc'
rubycUrl='https://github.com/pmq20/ruby-packer/releases/download/linux-x64/rubyc'
wget ${rubycUrl}
mv rubyc ${rubycPath}
chmod +x ${rubycPath}
and then try building a project you get the error mentioned in the very first post.
I have a solution or better said workaround. Use RVM. It works as it compiles Ruby with OpenSSL support.
Hi,
I'm trying to use rubyc within Ubuntu 20.04 Docker container and it crashes with following error:
It seems that I am unable to set OpenSSL directory to Ruby compilation itself. I'm rather only a bit above being Ruby beginner - so I'm neither able to find which step compiles the Ruby and try adding
--with-openssl-dir
in there.