typelead / eta

The Eta Programming Language, a dialect of Haskell on the JVM
https://eta-lang.org
BSD 3-Clause "New" or "Revised" License
2.61k stars 145 forks source link

Shared libraries should be noted as required for binary installation #567

Open pysaumont opened 7 years ago

pysaumont commented 7 years ago

Hello,

Having downloaded Etlas under Fedora 23 and trying to initialize a project, I get this message:

Config file path source is default config file. Config file /home/username/.etlas/config not found. Writing default configuration to /home/username/.etlas/config no user package environment file found at /home/username/Applications/Eta/eta-first Discovering the installation paths for your Eta executables... No existing installation found for 'eta'. Attempting to download binaries... Downloading the latest package lists from:

As someone any idea about how to deal with this problem?

Thanks

Pierre-Yves

rahulmutt commented 7 years ago

Can you run the command:

/home/username/.etlas/binaries/6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com/eta-0.0.9.6/binaries/x86_64-linux/eta --version

and share the output?

pysaumont commented 7 years ago

/home/username/.etlas/binaries/6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com/eta-0.0.9.6/binaries/x86_64-linux/eta: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

rahulmutt commented 7 years ago

Which linux are you running? You'll need to install that shared library in order for it to work. I'll update the docs to include a note that you should have the shared libraries installed. In the long-term, we'll gradually trim off those dependencies to make the binary installation smoother.

See: http://eta-lang.org/docs/html/getting-started.html#ubuntu

pysaumont commented 7 years ago

I am running Fedora 23. I thought that installing bzip2-devel was only necessary for source installation (as indicated in the "Getting started with Eta" page).

By the way, installing bzip2-devel was not enough. Here is what I did:

sudo dnf install bzip2-devel sudo ln -s find /usr/lib64/ -type f -name "libbz2.so.1*" /usr/lib64/libbz2.so.1.0

I found these instructions here:

https://michaelheap.com/error-while-loading-shared-libraries-libbz2-so-1-0-cannot-open-shared-object-file-on-centos-7

Thank you very much for you help!

rahulmutt commented 7 years ago

No problem. I'll leave this issue open as a reminder that we need to update the docs.