Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install-exodus.sh fails to install #251

Closed
millerta opened this issue Dec 8, 2023 · 2 comments
Closed

install-exodus.sh fails to install #251

millerta opened this issue Dec 8, 2023 · 2 comments
Assignees

Comments

@millerta
Copy link
Collaborator

millerta commented Dec 8, 2023

Fix script and/or instructions to build Exodus.
Greg has recommendations that might help.

Configured On:		Fri 08 Dec 2023 02:41:49 PM MST
Host System:		x86_64-Linux-5.4.0-167-generic
Build Directory: 	/project/eesdev/tam/clone/LaGriT_V333/TPLs/seacas/TPL/netcdf/netcdf-c/build
Install Prefix:         /project/eesdev/tam/clone/LaGriT_V333/TPLs/seacas
Static Library:		yes
Extra libraries:	-lhdf5_hl -lhdf5 -lm -lz -ldl -lz -lzstd -lbz2 -lcurl -lxml2
-- Configuring done
-- Generating done
-- Build files have been written to: /project/eesdev/tam/clone/LaGriT_V333/TPLs/seacas/TPL/netcdf/netcdf-c/build

[ 55%] Building C object libnczarr/CMakeFiles/nczarr.dir/zprov.c.o
/usr/bin/ld: /project/eesdev/tam/clone/LaGriT_V333/TPLs/seacas/lib/libz.a(zutil.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

[ 58%] Built target nczarr
make: *** [Makefile:166: all] Error 2
couldn't build NetCDF. exiting.
@millerta
Copy link
Collaborator Author

millerta commented Feb 5, 2024

Exodus install scripts have been updated for Linux and Mac OS.

For Linux use install-exodus.sh
The script corrects some issues found in the Exodus configuration files.

For Mac use MAC_install-exodus.sh
The script is the same as suggested by https://github.com/sandialabs/seacas but requires a working set of compilers.
Newer mac compilers show conflicts or are missing fortran, the install script will need valid compilers set.

See help and hints at README.md under LaGriT/cmake

@millerta millerta closed this as completed Feb 5, 2024
@andrea-bistacchi
Copy link

Hello, I tried installing with Exodus but I still get the cannot find -lcurl error as above when running the ./install-exodus.sh script.

[ 69%] Linking CXX executable SEACASExodus_ExoIICTests.exe
/usr/bin/ld: cannot find -lcurl: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [packages/seacas/libraries/exodus/test/CMakeFiles/SEACASExodus_ExoIICTests.dir/build.make:134: packages/seacas/libraries/exodus/test/SEACASExodus_ExoIICTests.exe] Error 1
make[1]: *** [CMakeFiles/Makefile2:1394: packages/seacas/libraries/exodus/test/CMakeFiles/SEACASExodus_ExoIICTests.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

I'm on a standard Ubuntu distribution running in WSL (Windows Subsystem for Linux), but this should not matter, since is supposed to behave exactly as standard Ubuntu.

I guess something is missing from the ./install-exodus.sh script (it also throws a lot of warnings) but it is really difficult for me to understand what is missing.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants