LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Issues with dependencies when installing php70-fpm. I have newer versions of the dependencies installed, but php70-fpm requires older (https://www.linuxquestions.org/questions/%2Absd-17/issues-with-dependencies-when-installing-php70-fpm-i-have-newer-versions-of-the-dependencies-installed-but-php70-fpm-requires-older-4175605074/)

KurtisKewl 05-02-2017 07:36 AM

Issues with dependencies when installing php70-fpm. I have newer versions of the dependencies installed, but php70-fpm requires older
 
I've just started using NetBSD. I'm usually a Linux/Mac user but setup NetBSD on my RaspberryPi to play about with it. I am having issues with dependencies and I'm not sure what's the best/safest thing to do.

The version of NetBSD I'm using is:

Code:

NetBSD rpi 7.99.64 NetBSD 7.99.64 (RPI.201703032010Z) evbarm
I am attempting to install php70-fpm using pkgin. Like so:

Code:

pkgin in php70-fpm
I get the following errors:

Code:

/usr/lib/libssl.so.10, needed by php70-fpm-7.0.0 is not present in this system.
/usr/lib/liblzma.so.1, needed by php70-fpm-7.0.0 is not present in this system.
/usr/lib/libcrypto.so.8, needed by php70-fpm-7.0.0 is not present in this system.
/usr/lib/libssl.so.10, needed by php-7.0.0 is not present in this system.
/usr/lib/liblzma.so.1, needed by php-7.0.0 is not present in this system.
/usr/lib/libcrypto.so.8, needed by php-7.0.0 is not present in this system.

After some checking I figured I do have those shared objects, but they're a different version. These are the libssl shared objects I have:

Code:

/usr/lib/libssl.so
/usr/lib/libssl.so.11
/usr/lib/libssl.so.12
/usr/lib/libssl.so.12.0

... But I don't have libssl.so.10.

I've read around the net and some suggest to copy libssl.so.11 to libssl.so.10. I am not sure if they're backwards compatible, or if any issues will arise.

Can anyone shed some light on the best thing to do here to get php70-fpm installed?

MensaWater 05-02-2017 08:05 AM

I wouldn't copy the library - I'd simply create a symbolic link to the other one.

ln -s /usr/lib/libssl.so.11 /usr/lib/libssl.so.10

Many times linking the newer library to the older solve problems like this and it would be the first thing I'd try. Usually your compile is looking for specific functions and if the newer library no longer contains that you'll get an error about that so you'll know before relying on it if you don't have what you need.

Of course this begs the question why you don't want to use a newer php that presumably uses the newer library as a prerequisite.

cynwulf 05-02-2017 08:35 AM

Quote:

Originally Posted by KurtisKewl (Post 5705047)
I am attempting to install php70-fpm using pkgin.

No experience at all with ARM evaluation board architectures, but the pre-built package you're trying to install was built against an older base system. Having base and ports out of sync is not resolved by messy symbolic links. As you're running NetBSD -current, you may have to build from source.

It would help to see what repository you are trying to use /usr/pkg/etc/pkgin/repositories.conf

KurtisKewl 05-02-2017 08:35 AM

Quote:

Originally Posted by MensaWater (Post 5705053)
I wouldn't copy the library - I'd simply create a symbolic link to the other one.

ln -s /usr/lib/libssl.so.11 /usr/lib/libssl.so.10

Many times linking the newer library to the older solve problems like this and it would be the first thing I'd try. Usually your compile is looking for specific functions and if the newer library no longer contains that you'll get an error about that so you'll know before relying on it if you don't have what you need.

Of course this begs the question why you don't want to use a newer php that presumably uses the newer library as a prerequisite.

This was my initial thought but I wasn't sure if that would cause problems.

Regarding the newer version of PHP, I have been digging around to try and find the latest version. Today is my first day with NetBSD so I'm just getting used to the package manager and how everything works. I'm going to find the latest version and see if that works.

Edit: Found the pkgin docs http://pkgin.net/ ... It seems 7.0 is latest version available so will try and build latest from source, but I'm a bit skeptical about doing it on a rpi.

cynwulf 05-02-2017 08:51 AM

You will probably need to build from source.

KurtisKewl 05-02-2017 08:54 AM

Quote:

Originally Posted by cynwulf (Post 5705083)
You will probably need to build from source.

Doing this now. Decided to cross compile it instead of doing it on the rpi. I worry the SD card will burn out much quicker.

cynwulf 05-02-2017 08:55 AM

Or you could make your life easier and not run NetBSD -current. That way you'd have binary packages.

KurtisKewl 05-02-2017 09:31 AM

Quote:

Originally Posted by cynwulf (Post 5705091)
Or you could make your life easier and not run NetBSD -current. That way you'd have binary packages.

What a morning. It would have been so much easier if I installed stable. I notice php7.1 binary is available. Just to confirm this release is stable right: ftp://ftp.netbsd.org/pub/NetBSD/NetB.../binary/gzimg/ ?

Copying to SD now and will give it a test.

Thanks for all the help guys.

cynwulf 05-02-2017 09:50 AM

7.1 is the latest release yes.

KurtisKewl 05-02-2017 01:23 PM

Stable installed, everything set up again and working. There's not php71-fpm package, but I knew that already. Will cross compile and look into contributing to the repos. Never done it before but I don't mind learning how if it helps others.


All times are GMT -5. The time now is 10:42 PM.