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
Compile on Linux failed #2234
Comments
In the bad old days, I did manage to build classic once on a centos system; these days it's much easier to build a (debian) singularity image and run that on centos. Names of .deb and .rpms are similar, but not exact. Your particular error relates to not finding the mono libraries - did you install the runtime or development (mono-devel) rpm? I used psims and apsim7.10 a long time ago; I just looked to see that it used a containerised apsim. I suspect it's just a matter of changing a few script locations. |
Building APSIM Classic is always a bit of a challenge... As the first line of your log file indicates: "Cant find mono/jit.h - expect trouble". The build script is not finding the mono include and lib files. As @peter-devoil indicates, the first thing is to make sure you have installed "mono-devel", and not just "mono". If that's not the problem, you will need to find out where the mono support has been installed. On Ubuntu, everything is installed under "/usr", with include files in /usr/include/mono-2 and libraries under /usr/lib. You may find that it has actually been installed under something like "/usr/local" (which is highly likely) or "/opt". If that is the case, you can set the environment variable MONO_PREFIX to the correct path (e.g., export MONO_PREFIX=/usr/local ) and try building again. |
Hi everyone,
I'm trying to compile APSIM classic on Linux because our previous experiment was conducted on the classic version. Now we want to simulate intensively, so we wish to run it on HPC. The Linux system is based on CentOS 7.9.
I believe I have successfully installed mono-4.8.1.
I run
./BuildAll.sh
but encountered failures in Dcaps, General, and APSIMUI builds. The Dcaps build error I encountered seems identical to issue #2180I have attached the output of the compilation process as "compilation_output.txt" below.
My questions are:
Any suggestions are greatly appreciated.
compilation_output.txt
The text was updated successfully, but these errors were encountered: