Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474928 - dev-python/mysql-python-1.2.3-r1 broken with dev-db/mysql-5.5.32
Summary: dev-python/mysql-python-1.2.3-r1 broken with dev-db/mysql-5.5.32
Status: RESOLVED DUPLICATE of bug 474952
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-27 03:49 UTC by Keith Harrison
Modified: 2013-06-28 22:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Harrison 2013-06-27 03:49:39 UTC
mysql .so libraries are no longer in /usr/lib, only in /usr/lib/mysql.  This apparently breaks mysql-python.

Reproducible: Always

Steps to Reproduce:
>>> import MySQLdb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/MySQLdb/__init__.py", line 19, in <module>
    import _mysql
ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
>>>



"emerge --oneshot mysql-python" did not help
Comment 1 Keith Harrison 2013-06-27 04:02:26 UTC
Portage 2.2.0_alpha185 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.9.7-gentoo x86_64)
=================================================================
System uname: Linux-3.9.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    32872528 total,  29808796 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of tree: Wed, 26 Jun 2013 22:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.4, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
Installed sets: @mybase, @mydesktop, @myfonts, @mymedia, @mynvidia, @myscoring, @mysecurity, @mysplash, @mystandard, @myvirtual, @myx64, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/neatx/home"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=8.1 --keep-going --with-bdeps=y --complete-graph"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.cyberuse.com/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.netnitco.net http://gentoo.wetzlmayr.com/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="64bit X a52 aac acl acpi alsa amd64 apache2 artworkextra asf audiofile automount avahi berkdb branding bzip2 cairo caps cdda cddb cdio cdparanoia cdr cli colord consolekit cracklib crypt cups curl cxx dbus device-mapper dri dts dvd dvdr dvi eds emboss encode escreen evo exif fam ffmpeg firefox flac fontconfig foomaticdb fortran fuse gd gdbm gif gimp glib glibc-omitfp gmp gnome gnome-keyring gnome-online-accounts gnuplot gphoto2 gpm graphviz gstreamer gtk gtk3 iconv id3tag ieee1394 ifp imagemagick imlib inotify iproute2 ipv6 ithreads java jpeg jpeg2k lame laptop latex lcms ldap libnotify libsecret libwww lm_sensors logrotate lua lzma mad md5sum mdnsresponder-compat mmap mmx mng modules mp2 mp3 mp4 mpeg mplayer mtp mudflap multilib mysql mysqli nautilus ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp pam pango pcre pdf pdo perl php plotutils png policykit posix ppds pulseaudio python qt3support qt4 quicktime rar rdp readline real rtc samba scanner sdl session sift skins smbclient sndfile socialweb spell sqlite sse sse2 sse41 ssl ssse3 startup-notification svg tcpd theora threads tiff transcode truetype twolame udev udisks unicode upower usb v4l vcd vdpau vhosts vim-with-x vorbis webkit win32codecs wmf wxwidgets wxwindows x264 xcb xcomposite xinerama xml xpm xscreensaver xulrunner xv xvid zeroconf zip zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 2 Dmitry Suloev 2013-06-27 13:15:53 UTC
Workaround:
1. create /etc/ld.so.conf.d/05mysql.conf with "/usr/lib/mysql" inside;
2. run sudo env-update && . /etc/profile;
3. run your software.
Comment 3 Stefan Fuchs 2013-06-27 14:12:48 UTC
I get the same error message, but while starting amarok. This happened after upgrading to mysql 5.5.32.
Comment 4 Brian Evans (RETIRED) gentoo-dev 2013-06-27 19:28:18 UTC
This should be solved as part of bug 474952 fix
Comment 5 Johannes Huber (RETIRED) gentoo-dev 2013-06-28 22:09:36 UTC
There was a bug in the mysql.eclass. So please sync the and tree and rebuild mysql or do the workaround mentioned in the master bug.

*** This bug has been marked as a duplicate of bug 474952 ***