StringiFor icon indicating copy to clipboard operation
StringiFor copied to clipboard

Easier install

Open epagone opened this issue 6 years ago • 10 comments

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/

epagone avatar Jul 25 '19 12:07 epagone

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.

szaghi avatar Jul 25 '19 15:07 szaghi

@epagone there are any news about this?

szaghi avatar Jan 27 '20 11:01 szaghi

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 avatar Jan 27 '20 11:01 epagone

@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

szaghi avatar Jan 27 '20 11:01 szaghi

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.

epagone avatar Jan 27 '20 11:01 epagone

@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 avatar Jan 29 '20 12:01 epagone

@epagone I was not aware about FPM, I'll try to study it, thanks

szaghi avatar Jan 29 '20 12:01 szaghi

BTW, some background information that led to the start of the project is here.

epagone avatar Jan 29 '20 12:01 epagone

Packaging StringiFor with fpm would solve this issue

epagone avatar Apr 06 '21 23:04 epagone

@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.

szaghi avatar Apr 09 '21 09:04 szaghi

Fixed by #38

epagone avatar Jun 28 '23 15:06 epagone