editeodoro / Bbarolo

Bbarolo is a 3D fitting tool to derive the kinematics of galaxies from emission-line observations.
http://editeodoro.github.io/Bbarolo/
GNU General Public License v2.0
30 stars 8 forks source link

issues for installing BBarolo in Linux #34

Closed Couleyr closed 9 months ago

Couleyr commented 9 months ago

I am trying to install the BBarolo in my computer. Its requirements are available in my machine. However, I got the following error when I ran the command "./congifure" .


Could not find the FFTW3 library

ERROR: BBarolo configuration failure. If you have the library in non ordinary path, try to run ./configure with --whih-fftw3= option.

When I manually added the path according to the prompts of the script, I got the same error alert.

Couleyr commented 9 months ago

OK , I have solved the above problem!

However, after I successfully ran the command: "./configure" and "make", I entered the "BBarolo" under the corresponding folder of the terminal, but reminded me that the "command not found".

The successfully installed "BBarolo" file also appeared in my Bbarolo-1.7 folder.

I look forward to your reply!

editeodoro commented 9 months ago

Hello, if you want to run the BBarolo executable from the directory where you compiled it, you need to type "./BBarolo" rather than just "BBarolo" (this is true for any executable in UNIX, not just BBarolo!).

If you want to make it available from everywhere in your system, you can either: 1) copy the executable in a directory which is already in your $PATH ("make install" will copy it by default in /usr/local/bin); 2) Add the BBarolo-1.7 directory to your $PATH; 3) Make an alias of BBarolo to where the executable is and add it to your .bashrc (or equivalent for other shells).

Let me know if you have any problems with the above. Enrico

Couleyr commented 9 months ago

First of all, thank you very much for your reply. I got the error message : '' ./BBarolo : error while loading shared libraries: libwcs.so.8: cannot open shared object file: No such file or directory", when I ran the commands "./BBarolo" or "BBarolo" in my terminal

editeodoro commented 9 months ago

See here, FAQ #1: https://bbarolo.readthedocs.io/en/latest/troubleshooting.html

Couleyr commented 9 months ago

Ok, thank you again! I have seen this method in this web! I added the path of the "libwcs.so.8" according to this way, and I found this file is installed in '/usr/local/lib'. I donot know if this is normal! But I got the same mistake according to this way!

editeodoro commented 9 months ago

Ok, can you send me the output of the command: "ldd BBarolo"? Thanks

Couleyr commented 9 months ago

OK, it shows there is no libwcs.so.8

![Uploading Ldd_BBarolo.png…]()

editeodoro commented 9 months ago

I can't see your attachment. Can you just send it by email if it does not work here? Also, can you send the output of "configure" and "make" steps? Thanks

Couleyr commented 9 months ago

OK, the following pictures are the outputs of the two commands.

截屏2023-11-27 15 21 29 截屏2023-11-27 15 22 13 截屏2023-11-27 15 22 37 截屏2023-11-27 15 23 04
Couleyr commented 9 months ago

OK, maybe there is something wrong with my network, I am so sorry! The screenshot is the output of the command "ldd BBarolo"

截屏2023-11-27 15 19 10
editeodoro commented 9 months ago

Do you confirm that if you give the following commands, it still gives the error?

> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH > export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH > ./BBarolo

Thanks

Couleyr commented 9 months ago

Oh, I found out what went wrong. I wrote the path of this lib as a specific path! I am too stupid.

According to your messages, this program has been successfully run!

This code is very nice! Thank you very much for all your comments and suggestions!

Best,

editeodoro commented 9 months ago

Good to hear that we figure it out! Let me know if you have any further issues.

Enrico