View previous topic :: View next topic |
Author |
Message |
rprescott n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Apr 2004 Posts: 16
|
Posted: Fri Oct 22, 2004 5:05 am Post subject: Error with Postfix Install |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Oct 22, 2004 8:25 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mbjr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Southpark/avatar30.gif)
Joined: 17 Jan 2004 Posts: 531 Location: Budapest/Hungary
|
Posted: Sat Dec 25, 2004 7:40 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mbjr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Southpark/avatar30.gif)
Joined: 17 Jan 2004 Posts: 531 Location: Budapest/Hungary
|
Posted: Sat Dec 25, 2004 7:57 pm Post subject: |
|
|
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 ![Smile :-)](images/smiles/icon_smile.gif) _________________ mb |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Sun Dec 26, 2004 8:36 am Post subject: Re: Error with Postfix Install |
|
|
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
with mysql in your USE like a normal gentoo user and have gentoo sort it out for you |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mbjr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Southpark/avatar30.gif)
Joined: 17 Jan 2004 Posts: 531 Location: Budapest/Hungary
|
Posted: Tue Dec 28, 2004 10:45 am Post subject: |
|
|
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 ![Sad :(](images/smiles/icon_sad.gif) _________________ mb |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
davester n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Dec 2004 Posts: 5
|
Posted: Wed Dec 29, 2004 12:08 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Wed Jan 19, 2005 11:28 am Post subject: |
|
|
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...? ![Cool 8)](images/smiles/icon_cool.gif) _________________ Greetz,
Evert Meulie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kwallo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Feb 2004 Posts: 26
|
Posted: Wed Jan 19, 2005 11:38 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
steveb Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1198140199438f3db8ee800.gif)
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Wed Jan 19, 2005 2:04 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Duncan Mac Leod Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/9509492144bd34bd5787b4.jpg)
Joined: 02 May 2004 Posts: 317 Location: Germany
|
Posted: Wed Jan 19, 2005 4:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Wed Jan 19, 2005 4:31 pm Post subject: |
|
|
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... ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) _________________ Greetz,
Evert Meulie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
buzzin Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/175924690240210c7fb973b.jpg)
Joined: 17 Oct 2003 Posts: 264 Location: St. Albans, UK.
|
Posted: Wed Jan 19, 2005 5:46 pm Post subject: |
|
|
Agreed, lost me 2 hours fixing servers with this problem ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
steveb Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1198140199438f3db8ee800.gif)
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Wed Jan 19, 2005 6:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
alain- n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Nov 2004 Posts: 25
|
Posted: Wed Jan 19, 2005 7:18 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Duncan Mac Leod Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/9509492144bd34bd5787b4.jpg)
Joined: 02 May 2004 Posts: 317 Location: Germany
|
Posted: Wed Jan 19, 2005 7:24 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Wed Jan 19, 2005 7:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Wed Jan 19, 2005 8:06 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
alain- n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Nov 2004 Posts: 25
|
Posted: Wed Jan 19, 2005 8:32 pm Post subject: |
|
|
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 ![Wink ;)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tgnb Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Apr 2002 Posts: 208 Location: New York, NY
|
Posted: Wed Jan 19, 2005 8:43 pm Post subject: |
|
|
ugh how did this get marked stable |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sl70 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/simpsons_snowball.gif)
Joined: 18 Jun 2002 Posts: 455 Location: Saitama, JP
|
Posted: Wed Jan 19, 2005 8:49 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Duncan Mac Leod Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/9509492144bd34bd5787b4.jpg)
Joined: 02 May 2004 Posts: 317 Location: Germany
|
Posted: Wed Jan 19, 2005 9:18 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ciaranm Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1296402073456c947ff0a50.png)
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Wed Jan 19, 2005 10:16 pm Post subject: |
|
|
meulie wrote: | I couldn't agree more! I spent a couple of hours today fixing a mission-critical server... ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) |
Can't be a very important mission if you're rolling unnecessary updates onto it without testing on another box first. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
absinthe Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/13433719423ee7c55433403.jpg)
Joined: 06 Oct 2002 Posts: 111 Location: San Francisco, CA, USA
|
Posted: Wed Jan 19, 2005 10:20 pm Post subject: |
|
|
meulie wrote: |
I couldn't agree more! I spent a couple of hours today fixing a mission-critical server... ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
suid77 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/5387436074283901dc0d24.jpg)
Joined: 10 Dec 2003 Posts: 81 Location: Seattle
|
Posted: Wed Jan 19, 2005 10:22 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|