Easier install
It would be helpful to have some info (after the compilation and test instructions) or a command to install automatically StringiFor on the system. I understand it could be complex or tedious to tailor for each system but it would help beginners.
Just in case it could be helpful for someone else, in my case (Ubuntu 18.04) I resorted to copying libstringifor.a to /usr/local/lib/stringifor/ and all the module files in /usr/local/include/stringifor/
Hi @epagone
This is a good suggestion indeed, but it has subtle issues... there is not a common way or a standard de facto for Fortran modules deployed for system basis. Your way is nice for me, but I am not sure if many others will agree.
A good place could be where the compilers/linkers usually search for, but I am not an expert.
As soon as we decide where to place the compiled objects I can add a bash script and a FoBiS rule to install them in the system.
@epagone there are any news about this?
I'm using /usr/lib for the library file and /usr/local/include/stringifor for the module files. It works more or less in my case, except that I still need to add the path /usr/local/include/stringifor in my include search manually. I couldn't come up with a better solution (and this is why I opened this issue). My hope was to get an install option when the package is built that works straight-away a bit like pip install ... in python.
@epagone
My hope was to get an install option when the package is built that works straight-away a bit like...
I can try, which kind of option are you thinking for? I am not an expert of system administration
To be honest, I have no clue how pip, scons, cmake or GNU make install the binaries on the system, otherwise I would have submitted a PR instead of opening an issue. I expect this to be fairly standard because it's very common. Just to be completely clear, I'm not looking for anything fancy or custom-made, only a way to add an option to FoBiS (for example) that installs correctly the package on the system and makes it available system-wide.
@szaghi maybe you're already aware, but the Fortran community is working towards a unified package manager. If you have time, someone with your skills would be a very important contributor and would resolve also issues like this one.
@epagone I was not aware about FPM, I'll try to study it, thanks
BTW, some background information that led to the start of the project is here.
Packaging StringiFor with fpm would solve this issue
@epagone
Hi, unfortunately, I am currently very busy, thus I am not able to try to pack this library with FPM. However, I will be very happy to accept PR.
Fixed by #38