LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-02-2017, 07:36 AM   #1
KurtisKewl
LQ Newbie
 
Registered: May 2017
Posts: 7

Rep: Reputation: Disabled
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?
 
Old 05-02-2017, 08:05 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,911
Blog Entries: 14

Rep: Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142
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.
 
Old 05-02-2017, 08:35 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,967
Blog Entries: 5

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Quote:
Originally Posted by KurtisKewl View Post
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

Last edited by cynwulf; 05-02-2017 at 08:43 AM.
 
Old 05-02-2017, 08:35 AM   #4
KurtisKewl
LQ Newbie
 
Registered: May 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MensaWater View Post
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.

Last edited by KurtisKewl; 05-02-2017 at 08:41 AM.
 
Old 05-02-2017, 08:51 AM   #5
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,967
Blog Entries: 5

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
You will probably need to build from source.

Last edited by cynwulf; 05-02-2017 at 08:55 AM.
 
Old 05-02-2017, 08:54 AM   #6
KurtisKewl
LQ Newbie
 
Registered: May 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cynwulf View Post
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.
 
Old 05-02-2017, 08:55 AM   #7
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,967
Blog Entries: 5

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Or you could make your life easier and not run NetBSD -current. That way you'd have binary packages.
 
Old 05-02-2017, 09:31 AM   #8
KurtisKewl
LQ Newbie
 
Registered: May 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cynwulf View Post
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.

Last edited by KurtisKewl; 05-02-2017 at 09:33 AM.
 
Old 05-02-2017, 09:50 AM   #9
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,967
Blog Entries: 5

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
7.1 is the latest release yes.
 
1 members found this post helpful.
Old 05-02-2017, 01:23 PM   #10
KurtisKewl
LQ Newbie
 
Registered: May 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.

Last edited by KurtisKewl; 05-02-2017 at 01:24 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD: php56 --> php70 Kropotkin *BSD 0 06-13-2016 12:44 PM
Performance issues with Nginx and php5-fpm particle64 Linux - Server 0 11-13-2012 04:58 PM
installing newer software from source when older version installed from a slackbuild Cultist Slackware 3 01-04-2011 04:07 PM
Issues installing Glib and dependencies ElliotFriend Linux - Server 2 11-23-2010 06:39 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration