0

I've just installed Linux Mint mate 20.2. I want to work with the last stable version of ruby so I've downloaded here Ruby 3.0.2 and followed the given instructions to install it from sources:

$ ./configure
$ make
$ sudo make install

After this, I've tried to install Rails (I have the same error whatever I've tried to install that way):

gem install rails -v 6.0.0.rc1

But this command returns the following error:

<internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': /usr/local/lib/ruby/3.0.0/x86_64-linux/zlib.so: undefined symbol: inflateReset - /usr/local/lib/ruby/3.0.0/x86_64-linux/zlib.so (LoadError)

The packages zlib1g and zlib1g-dev are already on my system.

I've searched the internet for a solution but couldn't find one, is there anyone here that can help me please ?

  • I've found the solutions trough this post : https://stackoverflow.com/questions/769496/ubuntu-rails-install-fails-on-zlib?rq=1 – Julie VIGNAUX Aug 15 '21 at 15:52

1 Answers1

1

Get the latest zlib here

Make and install it.

After installing the zlib, rebuild your ruby and the source will link to zlib.

Matt Andruff
  • 4,974
  • 1
  • 5
  • 21