You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into problems installing wgrib2 3.5 on MacOS (Intel). I've placed the downloaded wgrib2 folder in my /usr/local directory.
I have gcc-14, gfortran and cmake installed via Homebrew.
As is the case with current wgrib2 3.1.3, clang doesn't work so I'm forcing the use of gcc with these instructions
sudo cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
Here's the entire sequence of commands I'm running to try to install wgrib2 3.5—
cd /usr/local/wgrib2
mkdir build && cd build
sudo cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ .. DCMAKE_INSTALL_PREFIX=install -DCMAKE_PREFIX_PATH=/usr/local/bin
make
make install
It attempts to build, gets to 99% then shows these errors:
ld: symbol(s) not found for architecture x86_64
cc: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [wgrib2/libwgrib2.dylib] Error 1
make[1]: *** [wgrib2/CMakeFiles/wgrib2_lib.dir/all] Error 2
make: *** [all] Error 2
The error seems to be around the file libwgrib2.dylib, wgrib2_lib.dir and ld symbols not found.
Can wgrib2 3.5 be installed on MacOS?
Any help and suggestions about (1) correct directory to install and (2) additional dependency libraries that need to installed via Homebrew would be appreciated.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
I'm running into problems installing wgrib2 3.5 on MacOS (Intel). I've placed the downloaded wgrib2 folder in my /usr/local directory.
I have gcc-14, gfortran and cmake installed via Homebrew.
As is the case with current wgrib2 3.1.3, clang doesn't work so I'm forcing the use of gcc with these instructions
sudo cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
Here's the entire sequence of commands I'm running to try to install wgrib2 3.5—
It attempts to build, gets to 99% then shows these errors:
ld: symbol(s) not found for architecture x86_64
cc: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [wgrib2/libwgrib2.dylib] Error 1
make[1]: *** [wgrib2/CMakeFiles/wgrib2_lib.dir/all] Error 2
make: *** [all] Error 2
The error seems to be around the file libwgrib2.dylib, wgrib2_lib.dir and ld symbols not found.
Can wgrib2 3.5 be installed on MacOS?
Any help and suggestions about (1) correct directory to install and (2) additional dependency libraries that need to installed via Homebrew would be appreciated.
Thank you in advance.
The text was updated successfully, but these errors were encountered: