Compiling mysql-5.1.41 in Fedora 12

Compiling mysql-5.1.41 in Fedora 12

am 27.12.2009 05:14:55 von Kurian Thayil

Hi All,

I was trying to compile MySQL 5.1.41 in a Fedora 12 box. I don't want to do an
RPM install as I have to always upgrade the mysql package whenever an upgrade
is released. So it is always convenient to use source rather than RPM. I used
the following configure option.

root@home-desktop mysql-5.1.41]# sudo -u mysql ./configure --
localstatedir=/home/mysql/data --sysconfdir=/etc/mysql --with-default-
charset=latin --with-unix-socket-path=/home/mysql/unix.sock --with-tcp-
port=3307 --with-mysqld-user=mysql --with-mysqld-libs --with-ssl --with-
plugins=partition,csv,innobase,myisam,ndbcluster --enable-thread-safe-client

Gets configured successfully. But when doing make it gives me error. I think
its yassl package dependency. I installed yassl-1.9.6 but still the error. The
following is the last part of the make output.


root@home-desktop mysql-5.1.41]# sudo -u mysql make
...
...
...
...
...
...
/bin/sh ../libtool --preserve-dup-deps --tag=CXX --mode=link g++ -O3 -
fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqld
sql_lex.o sql_handler.o sql_partition.o item.o item_sum.o item_buff.o
item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o
item_create.o item_subselect.o item_row.o item_geofunc.o item_xmlfunc.o field.o
strfunc.o key.o sql_class.o sql_list.o net_serv.o protocol.o sql_state.o
lock.o my_lock.o sql_string.o sql_manager.o sql_map.o mysqld.o password.o
hash_filo.o hostname.o sql_connect.o scheduler.o sql_parse.o set_var.o
sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o sql_profile.o
sql_prepare.o sql_error.o sql_locale.o sql_update.o sql_delete.o uniques.o
sql_do.o procedure.o sql_test.o log.o init.o derror.o sql_acl.o unireg.o
des_key_file.o log_event.o rpl_record.o log_event_old.o rpl_record_old.o
discover.o time.o opt_range.o opt_sum.o records.o filesort.o handler.o
ha_partition.o debug_sync.o sql_db.o sql_table.o sql_rename.o sql_crypt.o
sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o sql_analyse.o
sql_cache.o slave.o sql_repl.o rpl_filter.o rpl_tblmap.o rpl_utility.o
rpl_injector.o rpl_rli.o rpl_mi.o rpl_reporting.o sql_union.o sql_derived.o
sql_client.o repl_failsafe.o sql_olap.o sql_view.o gstream.o spatial.o
sql_help.o sql_cursor.o tztime.o my_decimal.o sp_head.o sp_pcontext.o
sp_rcontext.o sp.o sp_cache.o parse_file.o sql_trigger.o event_scheduler.o
event_data_objects.o event_queue.o event_db_repository.o events.o sql_plugin.o
sql_binlog.o sql_builtin.o sql_tablespace.o partition_info.o sql_servers.o
event_parse_data.o mini_client_errors.o pack.o client.o my_time.o my_user.o
libndb.la ../storage/csv/libcsv.a ../storage/heap/libheap.a
.../storage/innobase/libinnobase.a ../storage/myisam/libmyisam.a
.../storage/myisammrg/libmyisammrg.a ../storage/ndb/src/.libs/libndbclient.a
.../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a
.../strings/libmystrings.a -lz -ldl ../extra/yassl/src/libyassl.la
.../extra/yassl/taocrypt/src/libtaocrypt.la yes -lpthread -lcrypt -lnsl -lm -
lpthread
libtool: link: g++ -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -
rdynamic -o mysqld sql_lex.o sql_handler.o sql_partition.o item.o item_sum.o
item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o
thr_malloc.o item_create.o item_subselect.o item_row.o item_geofunc.o
item_xmlfunc.o field.o strfunc.o key.o sql_class.o sql_list.o net_serv.o
protocol.o sql_state.o lock.o my_lock.o sql_string.o sql_manager.o sql_map.o
mysqld.o password.o hash_filo.o hostname.o sql_connect.o scheduler.o
sql_parse.o set_var.o sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o
sql_profile.o sql_prepare.o sql_error.o sql_locale.o sql_update.o sql_delete.o
uniques.o sql_do.o procedure.o sql_test.o log.o init.o derror.o sql_acl.o
unireg.o des_key_file.o log_event.o rpl_record.o log_event_old.o
rpl_record_old.o discover.o time.o opt_range.o opt_sum.o records.o filesort.o
handler.o ha_partition.o debug_sync.o sql_db.o sql_table.o sql_rename.o
sql_crypt.o sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o
sql_analyse.o sql_cache.o slave.o sql_repl.o rpl_filter.o rpl_tblmap.o
rpl_utility.o rpl_injector.o rpl_rli.o rpl_mi.o rpl_reporting.o sql_union.o
sql_derived.o sql_client.o repl_failsafe.o sql_olap.o sql_view.o gstream.o
spatial.o sql_help.o sql_cursor.o tztime.o my_decimal.o sp_head.o
sp_pcontext.o sp_rcontext.o sp.o sp_cache.o parse_file.o sql_trigger.o
event_scheduler.o event_data_objects.o event_queue.o event_db_repository.o
events.o sql_plugin.o sql_binlog.o sql_builtin.o sql_tablespace.o
partition_info.o sql_servers.o event_parse_data.o mini_client_errors.o pack.o
client.o my_time.o my_user.o yes ./.libs/libndb.a -lpthread -lpthread -
lpthread -lpthread ../storage/csv/libcsv.a ../storage/heap/libheap.a
.../storage/innobase/libinnobase.a ../storage/myisam/libmyisam.a
.../storage/myisammrg/libmyisammrg.a ../storage/ndb/src/.libs/libndbclient.a
.../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a
.../strings/libmystrings.a -lz -ldl ../extra/yassl/src/.libs/libyassl.a -
lpthread -lpthread -lpthread -lpthread
.../extra/yassl/taocrypt/src/.libs/libtaocrypt.a -lpthread -lpthread -lpthread
-lpthread -lpthread -lcrypt -lnsl -lm -lpthread
g++: yes: No such file or directory
make[3]: *** [mysqld] Error 1
make[3]: Leaving directory `/home/mysql/src/mysql-5.1.41/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mysql/src/mysql-5.1.41/sql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mysql/src/mysql-5.1.41/sql'
make: *** [all-recursive] Error 1




Any clue regarding this? Thank you.

Regards,

Kurian Thayil.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: Compiling mysql-5.1.41 in Fedora 12

am 30.12.2009 22:34:04 von Miguel Angel Nieto

Hi,

http://bugs.mysql.com/bug.php?id=3D42039

"The --with-mysqld-libs option should be given an argument, something
like --with-mysqld-libs=3D"-L/path/to/lib -lfoo -lbar"

2009/12/27 Kurian Thayil :
> Hi All,
>
> I was trying to compile MySQL 5.1.41 in a Fedora 12 box. I don't want to =
do an
> RPM =A0install as I have to always upgrade the mysql package whenever an =
upgrade
> is released. So it is always convenient to use source rather than RPM. I =
used
> the following configure option.
>
> root@home-desktop mysql-5.1.41]# sudo -u mysql ./configure --
> localstatedir=3D/home/mysql/data --sysconfdir=3D/etc/mysql --with-default=
-
> charset=3Dlatin --with-unix-socket-path=3D/home/mysql/unix.sock --with-tc=
p-
> port=3D3307 --with-mysqld-user=3Dmysql --with-mysqld-libs --with-ssl --wi=
th-
> plugins=3Dpartition,csv,innobase,myisam,ndbcluster --enable-thread-safe-c=
lient
>
> Gets configured successfully. But when doing make it gives me error. I th=
ink
> its yassl package dependency. I installed yassl-1.9.6 but still the error=
.. The
> following is the last part of the make output.
>
>
> root@home-desktop mysql-5.1.41]# sudo -u mysql make
> ..
> ..
> ..
> ..
> ..
> ..
> /bin/sh ../libtool --preserve-dup-deps --tag=3DCXX =A0 --mode=3Dlink g++ =
=A0-O3 =A0 =A0-
> fno-implicit-templates -fno-exceptions -fno-rtti =A0-rdynamic =A0-o mysql=
d
> sql_lex.o sql_handler.o sql_partition.o item.o item_sum.o item_buff.o
> item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o
> item_create.o item_subselect.o item_row.o item_geofunc.o item_xmlfunc.o f=
ield.o
> strfunc.o key.o sql_class.o sql_list.o net_serv.o protocol.o sql_state.o
> lock.o my_lock.o sql_string.o sql_manager.o sql_map.o mysqld.o password.o
> hash_filo.o hostname.o sql_connect.o scheduler.o sql_parse.o set_var.o
> sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o sql_profile.o
> sql_prepare.o sql_error.o sql_locale.o sql_update.o sql_delete.o uniques.=
o
> sql_do.o procedure.o sql_test.o log.o init.o derror.o sql_acl.o unireg.o
> des_key_file.o log_event.o rpl_record.o log_event_old.o rpl_record_old.o
> discover.o time.o opt_range.o opt_sum.o records.o filesort.o handler.o
> ha_partition.o debug_sync.o sql_db.o sql_table.o sql_rename.o sql_crypt.o
> sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o sql_analyse.o
> sql_cache.o slave.o sql_repl.o rpl_filter.o rpl_tblmap.o rpl_utility.o
> rpl_injector.o rpl_rli.o rpl_mi.o rpl_reporting.o sql_union.o sql_derived=
..o
> sql_client.o repl_failsafe.o sql_olap.o sql_view.o gstream.o spatial.o
> sql_help.o sql_cursor.o tztime.o my_decimal.o sp_head.o sp_pcontext.o
> sp_rcontext.o sp.o sp_cache.o parse_file.o sql_trigger.o event_scheduler.=
o
> event_data_objects.o event_queue.o event_db_repository.o events.o sql_plu=
gin.o
> sql_binlog.o sql_builtin.o sql_tablespace.o partition_info.o sql_servers.=
o
> event_parse_data.o mini_client_errors.o pack.o client.o my_time.o my_user=
..o
> libndb.la ../storage/csv/libcsv.a ../storage/heap/libheap.a
> ../storage/innobase/libinnobase.a ../storage/myisam/libmyisam.a
> ../storage/myisammrg/libmyisammrg.a ../storage/ndb/src/.libs/libndbclient=
..a
> ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a
> ../strings/libmystrings.a -lz =A0 =A0 -ldl ../extra/yassl/src/libyassl.la
> ../extra/yassl/taocrypt/src/libtaocrypt.la =A0yes -lpthread -lcrypt -lnsl=
-lm =A0-
> lpthread
> libtool: link: g++ -O3 -fno-implicit-templates -fno-exceptions -fno-rtti =
-
> rdynamic -o mysqld sql_lex.o sql_handler.o sql_partition.o item.o item_su=
m.o
> item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o
> thr_malloc.o item_create.o item_subselect.o item_row.o item_geofunc.o
> item_xmlfunc.o field.o strfunc.o key.o sql_class.o sql_list.o net_serv.o
> protocol.o sql_state.o lock.o my_lock.o sql_string.o sql_manager.o sql_ma=
p.o
> mysqld.o password.o hash_filo.o hostname.o sql_connect.o scheduler.o
> sql_parse.o set_var.o sql_yacc.o sql_base.o table.o sql_select.o sql_inse=
rt.o
> sql_profile.o sql_prepare.o sql_error.o sql_locale.o sql_update.o sql_del=
ete.o
> uniques.o sql_do.o procedure.o sql_test.o log.o init.o derror.o sql_acl.o
> unireg.o des_key_file.o log_event.o rpl_record.o log_event_old.o
> rpl_record_old.o discover.o time.o opt_range.o opt_sum.o records.o fileso=
rt.o
> handler.o ha_partition.o debug_sync.o sql_db.o sql_table.o sql_rename.o
> sql_crypt.o sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o
> sql_analyse.o sql_cache.o slave.o sql_repl.o rpl_filter.o rpl_tblmap.o
> rpl_utility.o rpl_injector.o rpl_rli.o rpl_mi.o rpl_reporting.o sql_union=
..o
> sql_derived.o sql_client.o repl_failsafe.o sql_olap.o sql_view.o gstream.=
o
> spatial.o sql_help.o sql_cursor.o tztime.o my_decimal.o sp_head.o
> sp_pcontext.o sp_rcontext.o sp.o sp_cache.o parse_file.o sql_trigger.o
> event_scheduler.o event_data_objects.o event_queue.o event_db_repository.=
o
> events.o sql_plugin.o sql_binlog.o sql_builtin.o sql_tablespace.o
> partition_info.o sql_servers.o event_parse_data.o mini_client_errors.o pa=
ck.o
> client.o my_time.o my_user.o yes =A0./.libs/libndb.a -lpthread -lpthread =
-
> lpthread -lpthread ../storage/csv/libcsv.a ../storage/heap/libheap.a
> ../storage/innobase/libinnobase.a ../storage/myisam/libmyisam.a
> ../storage/myisammrg/libmyisammrg.a ../storage/ndb/src/.libs/libndbclient=
..a
> ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a
> ../strings/libmystrings.a -lz -ldl ../extra/yassl/src/.libs/libyassl.a -
> lpthread -lpthread -lpthread -lpthread
> ../extra/yassl/taocrypt/src/.libs/libtaocrypt.a -lpthread -lpthread -lpth=
read
> -lpthread -lpthread -lcrypt -lnsl -lm -lpthread
> g++: yes: No such file or directory
> make[3]: *** [mysqld] Error 1
> make[3]: Leaving directory `/home/mysql/src/mysql-5.1.41/sql'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mysql/src/mysql-5.1.41/sql'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/mysql/src/mysql-5.1.41/sql'
> make: *** [all-recursive] Error 1
>
>
>
>
> Any clue regarding this? Thank you.
>
> Regards,
>
> Kurian Thayil.
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: =A0 =A0http://lists.mysql.com/mysql?unsub=3Dcorreo@miguel=
angelnieto.net
>
>



--=20
Lo que har=EDa ser=EDa hacerme pasar por sordomudo y as=ED no tendr=EDa que
hablar. Si quer=EDan decirme algo, tendr=EDan que escribirlo en un
papelito y enseñármelo. Al final se hartar=EDan y ya no tendr=EDa que
hablar el resto de mi vida.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg