How to install several version of readline?

Is FreeBSD multilibrary system or not? Can I use several versions libraries (for example readline7.0.5 and readline8.0.7)?
 
Comparing the port devel/readline to lang/php71, I would say - no.
It has no version number in the port name (like php does), so you can have only one version installed. Also, some of the files belonging to the port do not have the version in their paths (the include files for example). So two different versions would clash.

However, you could theoretically install one of the versions with a different path prefix. For example, you could use /usr/local/readline7 as destination directory when building the port. Then you would have to provide this path to all applications that need to compile against readline 7.
I have not done this though.

P.S. I think this forum is not the right one to post this question. It should be moved to "Installation and Maintenance of Ports or Packages".
 
Is FreeBSD multilibrary system or not? Can I use several versions libraries (for example readline7.0.5 and readline8.0.7)?
The "Howto" section is not for asking how to do things.


Thread moved to "Installation and Maintenance of Ports or Packages"
 
Back
Top