LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2018, 07:41 PM   #1
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
Current (pre-15), apache httpd requires libmariadb ?


Has this changed? I've never had mysql or mariadb installed and apache works fine. Now I get:

Quote:
httpd: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory
Thoughts?
 
Old 03-29-2018, 07:53 PM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I think you have two choices.

1. Install mariadb.
2. Try rebuilding httpd without mariadb.
 
Old 03-29-2018, 07:54 PM   #3
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Apache uses apr-util, which was recently recompiled in -current with the --with-mysql option (to enable Apache's mod_dbd module to work with MySQL/MariaDB) - that's probably why you're seeing the new dependency.
 
Old 03-29-2018, 07:59 PM   #4
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
and there's this BDFL apr-util comment, maybe related?
 
Old 03-29-2018, 08:00 PM   #5
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Original Poster
Rep: Reputation: 46
In my httpd.conf, I have mod_dbd commented out:
#LoadModule dbd_module lib64/httpd/modules/mod_dbd.so

So its not dynamic?

Is it also going to require lib's for oracle, sql server, sqlite2/3 and odbc?
 
Old 03-29-2018, 08:25 PM   #6
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
my current vm is up to date
Code:
ldd /usr/sbin/httpd
shows
Quote:
libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0
libmariadb.so.3 => /usr/lib64/libmariadb.so.3
mariadb-10.2.13-x86_64-1 is part of slackware current install, you didn't install this as orbea suggests?

didn't see the other databases you mentioned
 
Old 03-29-2018, 08:41 PM   #7
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Original Poster
Rep: Reputation: 46
No, I don't like either of orbea's options. Mariadb install size is 180 Meg. What a waste when I'm not going to use it.
 
Old 03-29-2018, 11:15 PM   #8
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by codeguy View Post
No, I don't like either of orbea's options. Mariadb install size is 180 Meg. What a waste when I'm not going to use it.
Well, curl package require libssh2, parts of xfce4 require gtk3, few other packages require libpulse... you see me complaining about it?
If I fail to meet the requirements for my own personal reasons, then I either recompile or discard the software.
 
1 members found this post helpful.
Old 03-30-2018, 01:01 PM   #9
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by codeguy View Post
In my httpd.conf, I have mod_dbd commented out:
#LoadModule dbd_module lib64/httpd/modules/mod_dbd.so

So its not dynamic?
MariaDB is a dependency of apr-util rather than of Apache directly, so not loading mod_dbd doesn't make any difference here:

Code:
$ ldd -v /usr/sbin/httpd
[...]

	Version information:
	/usr/sbin/httpd:
		libc.so.6 (GLIBC_2.14) => /lib64/libc.so.6
		libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
		libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
		libpthread.so.0 (GLIBC_2.2.5) => /lib64/libpthread.so.0
[...]
	/usr/lib64/libaprutil-1.so.0:
		libcrypt.so.1 (GLIBC_2.2.5) => /lib64/libcrypt.so.1
		libmysqlclient.so.18 (libmysqlclient_18) => /usr/lib64/libmysqlclient.so.18
		libc.so.6 (GLIBC_2.14) => /lib64/libc.so.6
		libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
		libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
		libpthread.so.0 (GLIBC_2.2.5) => /lib64/libpthread.so.0
Quote:
Originally Posted by codeguy View Post
Is it also going to require lib's for oracle, sql server, sqlite2/3 and odbc?
I appreciate this was a flippant comment, but Apache does in fact link against sqlite3:

Code:
$ ldd /usr/sbin/httpd | grep sqlite3
	libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x00007f7a7cc06000)
Quote:
Originally Posted by codeguy View Post
No, I don't like either of orbea's options. Mariadb install size is 180 Meg. What a waste when I'm not going to use it.
You're welcome to maintain your own apr-util package compiled without MySQL support and a httpd package built against that package: that's what I did (vice versa) until I could convince Pat it was worth having --with-mysql as the default.
 
1 members found this post helpful.
Old 03-30-2018, 01:11 PM   #10
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,515

Rep: Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481
Quote:
Originally Posted by CTM View Post
You're welcome to maintain your own apr-util package compiled without MySQL support and a httpd package built against that package: that's what I did (vice versa) until I could convince Pat it was worth having --with-mysql as the default.
Only a recompiled apr-util package would be needed. If apr-util doesn't pull in libmariadb.so.3, httpd won't either.

By the way, in Fedora apr-util _does_ pull in not only the MariaDB library, but also PostgreSQL and a couple of other database libraries making those hard dependencies. I expect that it's similar elsewhere. I do not take adding a dependency on something like MariaDB lightly, but in this case it is useful (and it's hardly the only thing in Slackware that depends on that library).
 
5 members found this post helpful.
Old 03-30-2018, 02:00 PM   #11
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
What's the sense of running today the Apache without MySQL or MariaDB, or even PHP?
 
1 members found this post helpful.
Old 03-30-2018, 03:11 PM   #12
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by volkerdi View Post
Only a recompiled apr-util package would be needed. If apr-util doesn't pull in libmariadb.so.3, httpd won't either.
Quite right - I have no idea why I implied it would, especially given what I'd just typed
 
  


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
blueman requires pulseaudio in 64 current ivandi Slackware 10 06-28-2012 11:36 PM
sudo requires current user's password robogymnast Linux - General 5 08-04-2008 08:14 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
Adobe Acrobate Reader Requires A Plugin-That Requires Open LDAP That Requires Berkely Old_Fogie Slackware 10 05-08-2006 05:04 AM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM

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

All times are GMT -5. The time now is 01:44 PM.

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