Open ohlincha opened 7 years ago
The following is current as of commit ee5fe2b on the make branch.
I've create a "make" branch which uses CMake to manage the build process. Currently this branch only builds shared libraries, Fortran binaries, and 3rd party dependancies.
This branch follows the standard CMake build process outlined below starting in the ECCE source directory.
mkdir _build; cd _build
cmake ..
make
# make install
Note that the install prefix defaults to /usr but can be changed by using the -DCMAKE_INSTALL_PREFIX=/path/to/install
when running CMake; however, this branch has has not reached a point where this is necessary.
Dustin, I'm not sure installing into the usual places is a good idea, but I need to make sure that I understand what's happening here.
So,
So, here is why I'm wanting to standardize the install process:
@mattasplund suggested storing everything in /opt/ecce and linking to /usr, /var/httpd/conf.d etc. as needed. This seems like a reasonable compromise since it would standardize many paths, but also keep ECCE mostly self-contained.
My concern is mainly regarding disk space -- the server/data folder can easily grow very large, and I think it's important that the user is explicitly prompted about where to store it. Sure, it doesn't quite jell with the idea of ECCE running as a service for several users, but I wonder how many ECCE installations are actually used in that way.
Locations on personal linux installs:
So in most cases /opt and /var would be on the / partition, and that could quickly (or slowly) cause the partition to run out of space.
A better solution would of course be for each user to have their own data dir i.e. the server is installed on e.g. /opt, but the users data files are in ~, but I don't know how much work that would involve implementing.
Either way, for the above reasons I think it's important that users are prompted explicitly about the location of the server (or server/data) location.
Maybe a ./configure/make(/install?) chain?
It will also help when building binaries for release