isce-framework / isce2

InSAR Scientific Computing Environment version 2
Other
508 stars 251 forks source link

Problems installing ISCE on redhat #393

Open tdl255 opened 2 years ago

tdl255 commented 2 years ago

Hello, I am having trouble installing ISCE2 on the scientific linux version of Redhat. I have triple checked all the paths in the scons config file, and installed all the necessary libraries. I am wondering if this is an issue with Redhat - I've had success installing ISCE on Ubuntu before. Attached is the config.log file. Any guidance would be very much appreciated config.log .

rtburns-jpl commented 2 years ago

It looks like you are using the system gcc but dependencies from anaconda? If you're linking against conda packages, you may have more luck using their compiler toolchain as well: https://conda.io/projects/conda-build/en/latest/resources/compiler-tools.html

tdl255 commented 2 years ago

Thanks for the suggestion, but I am still having the same problem after installing and using gcc version 9.2.0 (as well as g++/gfortran) via conda. The system gcc that I was previously using was version 4.8.5. I'll attach the config log file - thanks in advance! config-attempt2.log

rtburns-jpl commented 2 years ago

It still looks like you are using a non-conda compiler to build, although it's now /usr/local/bin/gcc instead of /usr/bin/gcc.

If you weren't aware, isce2 does have a prebuilt package available on conda-forge, installable via conda install -c conda-forge isce2.

hardreddata commented 2 years ago

You could just install the whole thing from https://anaconda.org/conda-forge/isce2 if you dont want the joy of compiling it.

conda install -c conda-forge isce2

tdl255 commented 2 years ago

Thanks all! I tried using conda install -c conda-forge isce2, and it didn't work at first. It was stuck on "solving environment" for hours. Then I installed all the isce2 dependencies individually, then ran conda install -c conda-forge isce2. After doing that, it worked! Thanks for the help.

hardreddata commented 2 years ago

Great. Conda dependency bloat can be problematic. I have had some success with using mamba for this.

conda install mamba -c conda-forge
mamba install isce2 -c conda-forge
tdl255 commented 2 years ago

The mdx display utility does not seem to be working with this conda/mamba installation ("Initializing X toolkit; Error: Can't open display"). Is this something I need to configure and/or compile myself? If so, are there instructions to do so without also installing all of isce?

EJFielding commented 2 years ago

@tdl255 The Initializing X toolkit; Error: Can't open display is a problem with the X11 environment variables in your terminal. It seems that the mdx program was compiled successfully as it is trying to open a window through the X11 Window System. Maybe you already figured out the problem.