Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error with Postfix Install
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rprescott
n00b
n00b


Joined: 09 Apr 2004
Posts: 16

PostPosted: Fri Oct 22, 2004 5:05 am    Post subject: Error with Postfix Install Reply with quote

Hi Everyone,

I am having an issue with my Mail Server at my work.
We are trying to install Postfix v2.1.5 with MySQL support.
Postfix complains that it cannot find libmysqlclient.so.13 file.

When I run the:
make -f Makefile.init makefiles \
'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql' \
'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm'

It works and the libmysqlclient file is in the /usr/local/mysql/lib/mysql

Any ideas?

P.S.
We are installing from my source =)
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Oct 22, 2004 8:25 am    Post subject: Reply with quote

And this is connected to Gentoo how ?
I'd recommend reading the Postfix documentation.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
mbjr
Guru
Guru


Joined: 17 Jan 2004
Posts: 531
Location: Budapest/Hungary

PostPosted: Sat Dec 25, 2004 7:40 pm    Post subject: Reply with quote

I don't know how, but it is. :-)

There's something going nuts after one of the mysql updates, which makes some .so files disappear somehow. I experience the same with .so.12, and this is not a postfix bug since I have postfix installed already with mysql support:
Quote:
[ebuild R ] mail-mta/postfix-2.1.5-r1 +ipv6* +ldap -mailwrapper -mbox +mysql +pam +postgres -sasl +ssl -vda 0 kB

but now I have:
Quote:
netsrv ~ # /usr/lib/postfix/pickup
/usr/lib/postfix/pickup: error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file: No such file or directory


rprescott, please try to run revdep-rebuild. This is an application to fix broken packages, and it did the thing for me :-)

If revdep-rebuild failes, try the followings:

- if emerge failed during build, fix the problems and re-run revdep-rebuild
or
- use -X or --package-names as first argument (try to rebuild package, not exact
ebuild - ignores SLOT!)
or
- set ACCEPT_KEYWORDS="~<your platform>" and/or /etc/portage/package.unmask
(and remove /root/.revdep-rebuild.5_order to be evaluated again)
or
- modify the above emerge command and run it manually
or
- compile or unmerge unsatisfied packages manually, remove temporary files and
try again (you can edit package/ebuild list first)
_________________
mb
Back to top
View user's profile Send private message
mbjr
Guru
Guru


Joined: 17 Jan 2004
Posts: 531
Location: Budapest/Hungary

PostPosted: Sat Dec 25, 2004 7:57 pm    Post subject: Reply with quote

Oh, and some more info :-) When you're trying to upgrade mysql, you get this:

Quote:

* If you're upgrading from MySQL-3.x to 4.0, or 4.0.x to 4.1.x, you
* must recompile the other packages on your system that link with
* libmysqlclient after the upgrade completes. To obtain such a list
* of packages for your system, you may use 'revdep-rebuild' from
* app-portage/gentoolkit.


:-) We SHOULD really read this info :-)
_________________
mb
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Sun Dec 26, 2004 8:36 am    Post subject: Re: Error with Postfix Install Reply with quote

rprescott wrote:
Hi Everyone,

I am having an issue with my Mail Server at my work.
We are trying to install Postfix v2.1.5 with MySQL support.
Postfix complains that it cannot find libmysqlclient.so.13 file.

When I run the:
make -f Makefile.init makefiles \
'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql' \
'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm'

It works and the libmysqlclient file is in the /usr/local/mysql/lib/mysql

Any ideas?

P.S.
We are installing from my source =)
Why don't you just do
Code:
emerge postfix
with mysql in your USE like a normal gentoo user and have gentoo sort it out for you
Back to top
View user's profile Send private message
mbjr
Guru
Guru


Joined: 17 Jan 2004
Posts: 531
Location: Budapest/Hungary

PostPosted: Tue Dec 28, 2004 10:45 am    Post subject: Reply with quote

Not gonna work for him. I'm having this problem again, and now revdep-rebuild dies somewhere.

This is a misterious thing. Postfix looks for libmysqlclient.so.whatever in the lib dirs and will die if they're not there. Same with php, mod_php or any other application which might have a +mysql way to build it :(
_________________
mb
Back to top
View user's profile Send private message
davester
n00b
n00b


Joined: 27 Dec 2004
Posts: 5

PostPosted: Wed Dec 29, 2004 12:08 am    Post subject: Reply with quote

Similar problem here, only I was using portage. On further inspection it turns out that after the latest mysql update, the symlinks from /usr/lib/libmysqlclient* to /usr/lib/mysql/mysqlclient* disappeared - hence the ld error.

I did a quick and dirty fix and just symlinked it manually for now.
Back to top
View user's profile Send private message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Wed Jan 19, 2005 11:28 am    Post subject: Reply with quote

Same here. I just went from 4.0.22 to 4.0.23-r1 and things started breaking... :(

Linking some files in /usr/lib/mysql/ to /usr/lib seems to have the system up again, although... Doesn't STABLE mean that I should not have to do these things...? 8)
_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
Kwallo
n00b
n00b


Joined: 18 Feb 2004
Posts: 26

PostPosted: Wed Jan 19, 2005 11:38 am    Post subject: Reply with quote

Is this worthy of a bug report? I couldn't get postfix to build until I linked them all with -

ln -s /usr/lib/mysql/libmysqlclient* /usr/lib/
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Wed Jan 19, 2005 2:04 pm    Post subject: Reply with quote

I have exactly the same problem with 4.0.23-r1. but this bug entry fixed my problem for postfix.

change:
Code:
        if use mysql ; then
                mycc="${mycc} -DHAS_MYSQL -I/usr/include/mysql"
                mylibs="${mylibs} -lmysqlclient -lm -lz"
        fi
to
Code:
        if use mysql ; then
                mycc="${mycc} -DHAS_MYSQL -I/usr/include/mysql -L/usr/lib/mysql"
                mylibs="${mylibs} -lmysqlclient -lm -lz"
        fi
in the postfix ebuild to fix the problem.


for dev-ruby/mysql-ruby to get compiled, i had to change:
Code:
ruby extconf.rb || die
to
Code:
ruby extconf.rb --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql --with-mysql-config || die
in the mysql-ruby ebuild.


cheers

steve
Back to top
View user's profile Send private message
Duncan Mac Leod
Guru
Guru


Joined: 02 May 2004
Posts: 317
Location: Germany

PostPosted: Wed Jan 19, 2005 4:13 pm    Post subject: Reply with quote

Maybe the man who did this !!STABLE!! ebuild of mysql-4.0.23-r1 should keep in mind that some guys like me are running PRODUCTION Servers for their living, so it's not very funny to see the servers down while fixing these 'issues' :( !

Hey, we've got ~x86 flags for such experiments!

just my 2 cents,
Duncan
Back to top
View user's profile Send private message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Wed Jan 19, 2005 4:31 pm    Post subject: Reply with quote

Duncan Mac Leod wrote:
Maybe the man who did this !!STABLE!! ebuild of mysql-4.0.23-r1 should keep in mind that some guys like me are running PRODUCTION Servers for their living, so it's not very funny to see the servers down while fixing these 'issues' :( !

Hey, we've got ~x86 flags for such experiments!

just my 2 cents,
Duncan


I couldn't agree more! I spent a couple of hours today fixing a mission-critical server... :roll:
_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
buzzin
Apprentice
Apprentice


Joined: 17 Oct 2003
Posts: 264
Location: St. Albans, UK.

PostPosted: Wed Jan 19, 2005 5:46 pm    Post subject: Reply with quote

Agreed, lost me 2 hours fixing servers with this problem :(
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Wed Jan 19, 2005 6:37 pm    Post subject: Reply with quote

i am back to 4.0.22. getting all the stuff working with 4.0.23-r1 possible for me. nagios and dspam refused to compile. anyway... i lost serval hours on this problem!
Back to top
View user's profile Send private message
alain-
n00b
n00b


Joined: 24 Nov 2004
Posts: 25

PostPosted: Wed Jan 19, 2005 7:18 pm    Post subject: Reply with quote

Kwallo wrote:
ln -s /usr/lib/mysql/libmysqlclient* /usr/lib/
This did not fix my problem, still getting the error emerging php5:
Code:
crypto -lm -lcrypt -lxml2 -lz -lm -lcrypt  -o sapi/cli/php
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive
make: *** [libphp5.la] Error 1
make: *** Waiting for unfinished jobs....
libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la'
make: *** [sapi/cli/php] Error 1

!!! ERROR: dev-php/php-5.0.3 failed.
!!! Function php5-sapi_src_compile, Line 434, Exitcode 2
!!! make failed
Any more hints how to get my php running again? I am _really_ glad that this is my development-server and not productive...
Alain.
Back to top
View user's profile Send private message
Duncan Mac Leod
Guru
Guru


Joined: 02 May 2004
Posts: 317
Location: Germany

PostPosted: Wed Jan 19, 2005 7:24 pm    Post subject: Reply with quote

Kwallo wrote:
ln -s /usr/lib/mysql/libmysqlclient* /usr/lib/


...worked for me (but I am using php4 :) !) - I did also rebuild my courier-imap and postfix system.

You 've saved my life ;) & my Server - THANK YOU!
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Wed Jan 19, 2005 7:53 pm    Post subject: Reply with quote

Quote:

Code:

 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la



this is not a mysql problem, did you made a update from gcc 3.3.4 to 3.3.5?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Wed Jan 19, 2005 8:06 pm    Post subject: Reply with quote

steveb wrote:
i am back to 4.0.22. getting all the stuff working with 4.0.23-r1 possible for me. nagios and dspam refused to compile. anyway... i lost serval hours on this problem!


*ARG* i've downgraded to 4.0.22 too, now everything runs ...
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
alain-
n00b
n00b


Joined: 24 Nov 2004
Posts: 25

PostPosted: Wed Jan 19, 2005 8:32 pm    Post subject: Reply with quote

pablo_supertux wrote:
Quote:

Code:

 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la



this is not a mysql problem, did you made a update from gcc 3.3.4 to 3.3.5?

That was the issue. This fixed it:
Code:
/sbin/fix_libtool_files.sh 3.3.4
Thanks to SteveB for hinting ;)
Back to top
View user's profile Send private message
tgnb
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 208
Location: New York, NY

PostPosted: Wed Jan 19, 2005 8:43 pm    Post subject: Reply with quote

ugh :( how did this get marked stable
Back to top
View user's profile Send private message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 455
Location: Saitama, JP

PostPosted: Wed Jan 19, 2005 8:49 pm    Post subject: Reply with quote

Well, doing
Code:
ln -s /usr/lib/mysql/libmysqlclient* /usr/lib


fixed the compilation problem with postfix, but it doesn't work for other programs, such as wmweather+ (though I admit postfix is way more important). I can't even see anywhere in the wmweather+ ebuild where I could add -L/usr/lib/mysql. Guess I just have to wait until the mysql ebuild is fixed. *sigh*
Back to top
View user's profile Send private message
Duncan Mac Leod
Guru
Guru


Joined: 02 May 2004
Posts: 317
Location: Germany

PostPosted: Wed Jan 19, 2005 9:18 pm    Post subject: Reply with quote

sl70 wrote:
Well, doing
Code:
ln -s /usr/lib/mysql/libmysqlclient* /usr/lib


fixed the compilation problem with postfix, but it doesn't work for other programs...


You are right! I have rebuilt nearly everything for my eMail System, BUT cyrus-sasl refuses to build the mysql support :( *ARGH*
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Wed Jan 19, 2005 10:16 pm    Post subject: Reply with quote

meulie wrote:
I couldn't agree more! I spent a couple of hours today fixing a mission-critical server... :roll:

Can't be a very important mission if you're rolling unnecessary updates onto it without testing on another box first.
Back to top
View user's profile Send private message
absinthe
Retired Dev
Retired Dev


Joined: 06 Oct 2002
Posts: 111
Location: San Francisco, CA, USA

PostPosted: Wed Jan 19, 2005 10:20 pm    Post subject: Reply with quote

meulie wrote:

I couldn't agree more! I spent a couple of hours today fixing a mission-critical server... :roll:


If it was so mission-critical you should have tested the update on another machine before deploying it.

Broken updates are not endemic to Gentoo, you will find them on any OS. Companies that keep their systems up do not blindly update production machines.

The bug reports are appreciated but whining when you shoot yourself in the foot is not.
_________________
Gentoo Developer
Back to top
View user's profile Send private message
suid77
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2003
Posts: 81
Location: Seattle

PostPosted: Wed Jan 19, 2005 10:22 pm    Post subject: Reply with quote

Quote:
Can't be a very important mission if you're rolling unnecessary updates onto it without testing on another box first.

Thats not the point. Sure, you shouldn't update if you don't need to, but we should also be able to trust the integrity of ebuilds marked as stable. It seems like a big enough problem that it shouldn't have slipped through the cracks.

If we can't rely on stable packages being stable, you suggest that we do a forum search on every update the portage presents us with?? There just seems to be a lot [too much] of this sort of thing going on lately.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum