mediatomb 0.12 unter OpenSolaris 2008.11 im Eigenbau – Teil 2

Zuletzt habe ich mediatomb 0.12 mit gcc unter dem neuen OpenSolaris 2008.11 kompiliert. Allerdings fehlte die Mysql-Unterstützung dank Fehler beim kompilieren. Schuld daran ist das Paket SUNWmysql5 im Release-Repository.

Deshalb nun zunächst Mysql selbst kompilieren…

Unter http://dev.mysql.com/downloads/mysql/5.1.html#source kann man ein aktuelles Quellcode-Paket als tar.gz herunterladen. Dieses muß zunächst entpackt werden und dann eine Shell im selben Verzeichnis geöffnet werden. Ich installiere wie zuletzt Eigenproduktionen unter /opt/local.

otmanix@pc103835:~/Downloads/mysql-5.1.30$ CC=gcc
otmanix@pc103835:~/Downloads/mysql-5.1.30$ export CC=gcc
otmanix@pc103835:~/Downloads/mysql-5.1.30$ export CFLAGS=”-O3 -fno-omit-frame-pointer”
otmanix@pc103835:~/Downloads/mysql-5.1.30$ export CXX=gcc
otmanix@pc103835:~/Downloads/mysql-5.1.30$ export CXXFLAGS=”-O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti”
otmanix@pc103835:~/Downloads/mysql-5.1.30$ ./configure –prefix=/opt/local/mysql –localstatedir=/opt/local/mysql/data –libexecdir=/opt/local/mysql/bin –with-extra-charsets=complex –enable-thread-safe-client –enable-local-infile –disable-shared
checking build system type… i386-pc-solaris2.11

config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing default commands
MySQL has a Web site at http://www.mysql.com/ which carries details on the latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find information about mailing lists for MySQL discussion. Remember to check the platform specific part of the reference manual for hints about installing MySQL on your platform. Also have a look at the files in the Docs directory.
Thank you for choosing MySQL!
otmanix@pc103835:~/Downloads/mysql-5.1.30$
otmanix@pc103835:~/Downloads/mysql-5.1.30$ cd sql
otmanix@pc103835:~/Downloads/mysql-5.1.30/sql$ pfexec /usr/ccs/bin/ar -ts .libs/libndb.a
libndb_la-ha_ndbcluster.o
libndb_la-ha_ndbcluster_binlog.o
libndb_la-ha_ndbcluster_cond.o
otmanix@pc103835:~/Downloads/mysql-5.1.30/sql$ cd ..
otmanix@pc103835:~/Downloads/mysql-5.1.30$ pfexec make

make[1]: Leaving directory `/export/home/otmanix/Downloads/mysql-5.1.30/win’
otmanix@pc103835:~/Downloads/mysql-5.1.30$
otmanix@pc103835:~/Downloads/mysql-5.1.30$ pfexec make install

make[1]: Leaving directory `/export/home/otmanix/Downloads/mysql-5.1.30/win’
otmanix@pc103835:~/Downloads/mysql-5.1.30$

Nun ist also Mysql kompiliert und installiert. Ein neuer Versuch muß zeigen, ob der Mysql-Support im mediatomb mit dem Mysql-Eigenbau beim kompilieren erfolgreicher läuft…
otmanix@pc103835:~/Downloads/mediatomb$ ./configure –prefix=/opt/local –enable-db-autocreate –enable-iconv-lib –enable-mrreg-service –enable-protocolinfo-extension –enable-sqlite3 –enable-libjs –enable-libmagic –enable-taglib –enable-libexif –enable-youtube –enable-external-transcoding –enable-curl –enable-ffmpeg –with-js-h=/usr/include/firefox/js –with-js-libs=/usr/lib/firefox –with-ffmpeg-libs=/opt/LWS/lib –with-ffmpeg-h=/opt/LWS/include –with-libmagic-h=/opt/local/include –with-libmagic-libs=/opt/local/lib –with-libmp4v2-libs=/opt/LWS/lib –with-libmp4v2-h=/opt/LWS/include –with-search=/opt/LWS –with-mysql-cfg=/opt/local/mysql/bin/mysql_config

checking sqlite3.h usability… yes
checking sqlite3.h presence… yes
checking for sqlite3.h… yes
checking for sqlite3_open in -lsqlite3… yes
configure: Will search for mysql config in /opt/local/mysql/bin/mysql_config
configure: You specified /opt/local/mysql/bin/mysql_config for mysql_config
checking mysql cflags… -I/opt/local/mysql/include/mysql -DHAVE_RWLOCK_T -DUNIV_SOLARIS
checking mysql libs… -L/opt/local/mysql/lib/mysql -lmysqlclient_r -lz -lpthread -lthread -lgen -lsocket -lnsl -lm -lpthread -lthread
checking mysql.h usability… yes
checking mysql.h presence… yes
checking for mysql.h… yes
checking for mysql_init… yes
checking mysql version… 5.1.30
checking for mysql_stmt_init… yes
checking MYSQL_OPT_RECONNECT… yes


CONFIGURATION SUMMARY —-
sqlite3               : yes
mysql                 : yes
libjs                 : yes
libmagic              : yes
inotify               : missing
libexif               : yes
id3lib                : disabled
taglib                : yes
libmp4v2              : yes
libdvdnav             : missing
ffmpeg                : yes
ffmpegthumbnailer     : missing
external transcoding  : yes
curl                  : yes
YouTube               : yes
Weborama              : disabled
Apple Trailers        : yes
SopCast               : disabled
libextractor          : disabled
db-autocreate         : yes
otmanix@pc103835:~/Downloads/mediatomb$

So stelle ich mir das vor… Manchmal rentiert es sich also doch selbst Hand anzulegen ;)

This entry was posted in Indiana, OpenSolaris and tagged , , , , , , . Bookmark the permalink.

One Response to mediatomb 0.12 unter OpenSolaris 2008.11 im Eigenbau – Teil 2

  1. Pingback: SYSTEMHELDEN.COM /* HELDENFunk

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>