Open JorgeRealP opened 2 years ago
Jorge,
Please move over to https://github.com/dwcaress/MB-System and post this issue there - Simon hasn't maintained his Homebrew MB-System installer in this repository for a long time. Or post to the MB-System discussion list at https://listserver.mbari.org/sympa/arc/mbsystem
What is the architecture of the machine - Intel or Arm (Apple Silicon)? If Intel then it is still possible to build a beta release MB-System using Homebrew. If it is an Arm machine then you will need to install the prerequisites using MacPorts rather than Homebrew.
Cheers, Dave
Here are some updated notes on installing the recent beta releases of MB-System that haven't made it to the web pages. This includes how to use MacPorts instead of Homebrew for the prerequisites.
#
#
#
#
#
#
make make install #
make check (build and execute a limited set of unit tests) make clean (to delete compiled object files in the source code tree) make uninstall (to fully uninstall the installed libraries, headers, and programs) #
#
#
#
#
#
#
#
#
sudo port -v selfupdate sudo port install gmt6 proj6 fftw-3 xorg mesa libGLU openmotif opencv4 #
port select --list python sudo port install python310 port select --set python3 python310 #
https://github.com/dwcaress/MB-System/archive/refs/tags/5.7.9beta29.tar.gz
#
the prerequisite packages. #
./configure \
--prefix=/usr/local \
--disable-static \
--enable-shared \
--enable-hardening \
--enable-test \
--with-proj-lib=/opt/local/lib/proj6/lib \
--with-proj-include=/opt/local/lib/proj6/include \
--with-gmt-config=/opt/local/lib/gmt6/bin \
--with-fftw-lib=/opt/local/lib \
--with-fftw-include=/opt/local/include \
--with-x11-lib=/opt/local/lib \
--with-x11-include=/opt/local/include \
--with-motif-lib=/opt/local/lib \
--with-motif-include=/opt/local/include \
--with-opengl-include=/opt/local/include \
--with-opengl-lib=/opt/local/lib \
--enable-mbtrn \
--enable-mbtnav \
--enable-opencv \
--with-opencv-include=/opt/local/include/opencv4 \
--with-opencv-lib=/opt/local/lib/opencv4 \
--with-otps-dir=/usr/local/src/otps
#
make
make check
sudo make install
#
#
#
#
#
#
#
#
./configure \ --prefix=/usr/local \ --disable-static \ --enable-shared \ --enable-hardening \ --enable-test \ --with-x11-lib=/opt/X11/lib \ --with-x11-include=/opt/X11/include \ --with-motif-lib=/usr/local/opt/openmotif/lib \ --with-motif-include=/usr/local/opt/openmotif/include \ --with-opengl-include=/opt/X11/include \ --with-opengl-lib=/opt/X11/lib \ --with-otps-dir=/usr/local/src/otps #
./configure \ --prefix=/usr/local \ --disable-static \ --enable-shared \ --enable-hardening \ --enable-test \ --with-x11-lib=/opt/X11/lib \ --with-x11-include=/opt/X11/include \ --with-opengl-lib=/opt/X11/lib \ --with-opengl-include=/opt/X11/include \ --with-motif-lib=/opt/homebrew/lib \ --with-motif-include=/opt/homebrew/include \ --with-otps-dir=/usr/local/src/otps #
sudo make
sudo make install
#
#
#
apt-cache show gmt
#
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get upgrade
#
sudo apt-get install gmt libgmt5 libgmt-dev gmt-gshhg gmt-doc
#
#
sudo apt-get install libx11-dev xorg-dev libmotif-dev libmotif4 \
libxp-dev mesa-common-dev libsdl1.2-dev libsdl-image1.2-dev
#
sudo apt-get install build-essential gfortran nautilus-open-terminal \
libfftw3-3 libfftw3-dev libnetcdf-dev netcdf-bin \
libgdal-bin gdal-dev gv csh libgmt-dev libproj-dev
#
sudo apt-get install gmt libgmt5 libgmt-dev gmt-gshhg gmt-doc \
libx11-dev xorg-dev libmotif-dev libmotif4 \
libxp-dev mesa-common-dev libsdl1.2-dev libsdl-image1.2-dev \
build-essential gfortran nautilus-open-terminal \
libfftw3-3 libfftw3-dev libnetcdf-dev netcdf-bin \
libgdal-bin gdal-dev gv csh libgmt-dev libproj-dev
#
#
#
sudo ./configure
#
sudo make
sudo make install
#
#
#
#
#
# #
#
cd ~
gmt gmtdefaults > gmt.conf
#
#
mbdefaults -Dgv -Ifeh -V
And sorry about how that looks - Github is interpreting the notes as Markdown code when it is not...
David,
Thank you very much for the help. My computer is a 2015 mac with an intel processor. I am going to follow the steps that you recommend for the installation of the beta version for MBSYSTEM.
I apologize for opening this issue here (my first time using Github). The following I will put them where they should be.
Thanks
Jorge Real.
Jorge,
Since you have an old Intel Mac and already have Homebrew set up, first try:
brew tap dwcaress/mbsystem
brew install mbsystem-beta
I hope this helps.
Dave
On Jun 18, 2022, at 12:32 PM, JorgeRealP @.***> wrote:
David,
Thank you very much for the help. My computer is a 2015 mac with an intel processor. I am going to follow the steps that you recommend for the installation of the beta version for MBSYSTEM.
I apologize for opening this issue here (my first time using Github). The following I will put them where they should be.
Thanks
Jorge Real.
— Reply to this email directly, view it on GitHub https://github.com/zimonkaizoku/homebrew-mbsystem/issues/7#issuecomment-1159545295, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSXXH2TDJEGNOJK5LVUJLVPYP4PANCNFSM5ZEEUB5Q. You are receiving this because you commented.
David W. Caress Principal Engineer Seafloor Mapping Lab
Monterey Bay Aquarium Research Institute 7700 Sandholdt Road Moss Landing, CA 95039
@.*** http://www.mbari.org/~caress/
Phone: 831-775-1775
Dear David Caress,
We’ve been trying to install nbsystem on a MacOS Monterey for several days during a campaign in the R/V Marcus G. Langseth. We managed to finish successfully all the pre-installation steps as indicated on the following page:
https://www.mbari.org/products/research-software/mb-system/how-to-download-and-install-mb-system/#toggle-id-7
However, when compiling the software (i.e., make install) systematically get the following problem:
Last 15 lines from /Users/jorge/Library/Logs/Homebrew/otps/01.make:
gfortran -o extract_HC -fconvert=swap -frecord-marker=4 extract_HC.f90 subs.f90 Undefined symbols for architecture x86_64: "gfortran_os_error_at", referenced from: _MAIN in ccyOwdGJ.o mapll in cc98kTT5.o mapxy in cc98kTT5.o _rd_modbody in cc98kTT5.o _rd_modbody1 in cc98kTT5.o ptide in cc98kTT5.o _writeuv in cc98kTT5.o ... ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status make: *** [extract_HC] Error 1
that seem to have something to do with the compiler not able to recognize some “symbols”. We don’t know what else to do. Any hint would be very appreciated.
With best regards,
Jorge Real