LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-15-2020, 04:08 PM   #1
redscience
LQ Newbie
 
Registered: Jan 2012
Posts: 27

Rep: Reputation: Disabled
error message: php: error while loading shared libraries: libargon2.so.1


I got this error message when I want to upgrade php from 5.6 to 7.4

php: error while loading shared libraries: libargon2.so.1: cannot open shared object file: No such file or directory

I sent these commands

wget ftp://ftp.slackware.com/pub/slackwar...3-x86_64-1.txz

upgradepkg php-7.4.3-x86_64-1.txz


nano /etc/httpd/mod_php.conf

# LoadModule php5_module lib64/httpd/modules/libphp5.so
LoadModule php7_module lib64/httpd/modules/libphp7.so


/etc/rc.d/rc.httpd stop
/etc/rc.d/rc.httpd start

php -v

php: error while loading shared libraries: libargon2.so.1: cannot open shared object file: No such file or directory

please guide me about this problem
 
Old 03-15-2020, 05:14 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,092

Rep: Reputation: Disabled
Installing packages for Slackware current in Slackware 14.2 often leads to failures, in this case because in current php depends on argon2, not shipped in 14.2. Don't do that.
 
Old 03-15-2020, 05:35 PM   #3
redscience
LQ Newbie
 
Registered: Jan 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
thanks
but what can I do?
I cannot run WooCommerce and other plugins on Wordpress that need PHP more than 7 Version

respectfully
 
Old 03-15-2020, 05:51 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560

Rep: Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354
You'll have to build the php version you need on the 14.2 system: https://mirrors.slackware.com/slackw.../source/n/php/
 
Old 03-16-2020, 10:37 AM   #5
redscience
LQ Newbie
 
Registered: Jan 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
I think files are the same as my mentioned files, I got a problem on it

I saw these files before

Is there any different method to install and compile files over there?

Maybe some of the methods will be different from straight ways
 
Old 03-16-2020, 10:54 AM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560

Rep: Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354
They are not the same. You installed the binary package compiled on a -current system onto a 14.2 system. That's not expected to work.

What you need to do is compile a package with those php sources on a 14.2 system.
 
Old 03-16-2020, 01:59 PM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657
Quote:
Originally Posted by redscience View Post
I think files are the same as my mentioned files, I got a problem on it

I saw these files before

Is there any different method to install and compile files over there?

Maybe some of the methods will be different from straight ways
As Robbby mentioned, taking a package compiled on a different system (even if it's just a different version of Slackware) is not guaranteed to work. This is because that package is compiled against the library versions that are installed when compiled. In the case of your issue, argon was added to the distro after 14.2 was released. It is possible that installed argon will make that error go away (assuming the argon you install is the same version php was compiled against), but even if it loads without errors, it might still be broken or have missing features.

This is why it is best to build the package specifically for your version of Slackware.
 
  


Reply



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
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:20 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
Open Source Consulting | Domain Registration