Skip to content
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

Easier install #26

Closed
epagone opened this issue Jul 25, 2019 · 11 comments
Closed

Easier install #26

epagone opened this issue Jul 25, 2019 · 11 comments
Assignees

Comments

@epagone
Copy link
Contributor

epagone commented Jul 25, 2019

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/

@szaghi szaghi self-assigned this Jul 25, 2019
@szaghi
Copy link
Owner

szaghi commented Jul 25, 2019

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
Copy link
Owner

szaghi commented Jan 27, 2020

@epagone there are any news about this?

@epagone
Copy link
Contributor Author

epagone commented Jan 27, 2020

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.

@szaghi
Copy link
Owner

szaghi commented Jan 27, 2020

@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

@epagone
Copy link
Contributor Author

epagone commented Jan 27, 2020

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
Copy link
Contributor Author

epagone commented Jan 29, 2020

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

@szaghi
Copy link
Owner

szaghi commented Jan 29, 2020

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

@epagone
Copy link
Contributor Author

epagone commented Jan 29, 2020

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

@epagone
Copy link
Contributor Author

epagone commented Apr 6, 2021

Packaging StringiFor with fpm would solve this issue

@szaghi
Copy link
Owner

szaghi commented Apr 9, 2021

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

@epagone
Copy link
Contributor Author

epagone commented Jun 28, 2023

Fixed by #38

@epagone epagone closed this as completed Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants