-
Notifications
You must be signed in to change notification settings - Fork 117
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
Portable installation of ED #22
Comments
@fabeuw Yes, the fact that models (not just ED) can be a pain to install is one of the main reasons that we include the models pre-compiled on the PEcAn VM. If you think you can compile ED2 into a version that's going to be machine-independent, and document how you did that, we'd be happy to include it in the PEcAn VM and document that the version can be copied. That said, I'm a bit skeptical that this will actually work except when moving the executable to other machines with the same architecture and the same flavor of *NIX. @robkooper any experience with this? |
@mdietze I see moving from linux to windows unlikely, but I was thinking at least within the NIX domain. Ideally it would be possible to make the ED executable run on a default fresh installation of Ubuntu, for example, without the need to install any additional packages or compiling the code. The latest code could be easily compiled on an online server, connected to github, and then a zip folder can be generated that contains all the necessary libs to run the exe. |
Besides different architectures (x86 vs x86_64 vs ARM) all of which are Ubuntu, it will also depend on some of the libraries installed. You can see what libraries are needed to be installed using the following command:
This shows it depends on gfortran as well as hdf5 libraries that need to be installed. Installing those will probably be enough to copy the library across. I have not tried static when compiling so I don't really know how it will affect it. |
Hi, root@alunos-desktop:/home/alunos/ED2-master/ED/build# sudo ./ed_2.1-opt |
@lucianainpa your issue is related to either a compiler error or you did not load the modules. You can load the modules with commands such as |
Thanks fabeuw , |
Maybe this has already been discussed by other people, but given the not so easy installation and compiling of ED, and the many different versions of libraries and compilers, what about making a portable installation of ED? Something I can compile on say the pecan VM and just copy a folder or the ED executable and the ED2IN file to another computer and run. Fortran code can be compiled with the -static option and the exe can include static loaded libraries. It seems from what I have found online that it is also possible to use dlopen and dlsym to dynamically load .so .I tried to compile using some of the -static flags but the executable didn't run on another machine, and I am sure it is more complex than that. If anybody is interested in this please let me know and we can discuss this further.
The text was updated successfully, but these errors were encountered: