Tarball complie question
Hello,
I'm installing myhttp tarball to centos 5.1, it the README requested the following complie options: To install, first install mysql and libcurl then do a ./configure --with-mysql=/home/brian/mysql/mysql-5.1/ --libdir=/home/brian/mysql-builds/example/lib/mysql/ make install I installed Mysql service via yum and libcurl installed by tarball to /usr/local path. My question is how can find the --with-mysql and --libdir path ? Thanks |
Please help
|
try this command:
Quote:
Quote:
|
Quote:
/usr/lib/mysql/libmysqlclient.so.15 /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/mysql/libmysqlclient_r.so.15 /usr/lib/mysql/libmysqlclient_r.so.15.0.0 So what the mysqlclient for ? Thanks |
I want install myhttp_engine for my friend to develop web application, but I don't know how to install it :(
http://tangent.org/index.pl?node_id=528 Thanks |
--with-mysql=/usr/lib/mysql/
|
Quote:
Making install in src make[1]: Entering directory `/root/myhttp_engine-0.4/src' /bin/sh ../libtool --preserve-dup-deps --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DMYSQL_DYNAMIC_PLUGIN -DUNIV_MUST_NOT_INLINE -DFORCE_INIT_OF_VARS -I/usr/lib/mysql/sql -I/usr/lib/mysql/include -I../include -I/usr/include/libxml2 -g -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -MT ha_myhttp.lo -MD -MP -MF .deps/ha_myhttp.Tpo -c -o ha_myhttp.lo ha_myhttp.cc mkdir .libs g++ -DHAVE_CONFIG_H -I. -I.. -DMYSQL_DYNAMIC_PLUGIN -DUNIV_MUST_NOT_INLINE -DFORCE_INIT_OF_VARS -I/usr/lib/mysql/sql -I/usr/lib/mysql/include -I../include -I/usr/include/libxml2 -g -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -MT ha_myhttp.lo -MD -MP -MF .deps/ha_myhttp.Tpo -c ha_myhttp.cc -fPIC -DPIC -o .libs/ha_myhttp.o ha_myhttp.cc:29:19: error: brian.h: No such file or directory ha_myhttp.cc:30:24: error: mysql_priv.h: No such file or directory In file included from ha_myhttp.cc:31: ha_myhttp.h:25:26: error: mysql/plugin.h: No such file or directory ha_myhttp.h:68: error: 'THR_LOCK' does not name a type ha_myhttp.h:75: error: expected class-name before '{' token ha_myhttp.h:76: error: 'THR_LOCK_DATA' does not name a type ha_myhttp.h:81: error: 'String' does not name a type ha_myhttp.h:83: error: 'String' has not been declared ha_myhttp.h:83: error: 'String' has not been declared ha_myhttp.h:84: error: 'Field' has not been declared ha_myhttp.h:85: error: 'Field' has not been declared ha_myhttp.h:85: error: 'String' has not been declared ha_myhttp.h:86: error: 'Field' has not been declared ha_myhttp.h:86: error: 'String' has not been declared ha_myhttp.h:89: error: expected `)' before '*' token ha_myhttp.h:105: error: 'ulonglong' does not name a type ha_myhttp.h:166: error: 'uchar' has not been declared ha_myhttp.h:169: error: 'uchar' has not been declared ha_myhttp.h:170: error: 'uchar' has not been declared ha_myhttp.h:170: error: 'uchar' has not been declared ha_myhttp.h:171: error: expected ',' or '...' before '*' token ha_myhttp.h:171: error: ISO C++ forbids declaration of 'uchar' with no type ha_myhttp.h:172: error: expected ',' or '...' before '*' token ha_myhttp.h:172: error: ISO C++ forbids declaration of 'uchar' with no type ha_myhttp.h:173: error: 'uchar' has not been declared ha_myhttp.h:173: error: expected ',' or '...' before '*' token ha_myhttp.h:174: error: ISO C++ forbids declaration of 'uchar' with no type ha_myhttp.h:175: error: 'uchar' has not been declared ha_myhttp.h:176: error: expected ',' or '...' before '*' token ha_myhttp.h:178: error: ISO C++ forbids declaration of 'key_range' with no type ha_myhttp.h:180: error: 'ha_rows' does not name a type ha_myhttp.h:183: error: expected ',' or '...' before '*' token ha_myhttp.h:183: error: ISO C++ forbids declaration of 'uchar' with no type ha_myhttp.h:186: error: 'TABLE' has not been declared ha_myhttp.h:187: error: 'HA_CREATE_INFO' has not been declared ha_myhttp.h:189: error: ISO C++ forbids declaration of 'THR_LOCK_DATA' with no type ha_myhttp.h:189: error: expected ';' before '*' token ha_myhttp.h: In member function 'ulong ha_myhttp::index_flags(uint, uint, bool) const': ha_myhttp.h:123: error: 'HA_ONLY_WHOLE_INDEX' was not declared in this scope ha_myhttp.h: In member function 'uint ha_myhttp::max_supported_record_length() const': ha_myhttp.h:145: error: 'HA_MAX_REC_LENGTH' was not declared in this scope ha_myhttp.h: In member function 'int ha_myhttp::index_next(int*)': ha_myhttp.h:175: error: 'HA_ERR_END_OF_FILE' was not declared in this scope ha_myhttp.cc: At global scope: ha_myhttp.cc:40: error: expected initializer before '*' token ha_myhttp.cc:46: error: 'HASH' does not name a type ha_myhttp.cc: In function 'size_t my_curl_write_callback(void*, size_t, size_t, void*)': ha_myhttp.cc:61: error: 'String' was not declared in this scope ha_myhttp.cc:61: error: 'str' was not declared in this scope ha_myhttp.cc:64: error: expected primary-expression before ')' token ha_myhttp.cc:64: error: expected `;' before 'data' ha_myhttp.cc: At global scope: ha_myhttp.cc:88: error: expected initializer before '*' token ha_myhttp.cc: In function 'int myhttp_init_func(void*)': ha_myhttp.cc:97: error: 'DBUG_ENTER' was not declared in this scope ha_myhttp.cc:99: error: 'handlerton' was not declared in this scope ha_myhttp.cc:99: error: 'myhttp_hton' was not declared in this scope ha_myhttp.cc:99: error: expected primary-expression before ')' token ha_myhttp.cc:99: error: expected `;' before 'p' ha_myhttp.cc:103: error: 'MY_MUTEX_INIT_FAST' was not declared in this scope ha_myhttp.cc:103: error: 'pthread_mutex_init' was not declared in this scope ha_myhttp.cc:103: error: 'VOID' was not declared in this scope ha_myhttp.cc:104: error: 'myhttp_open_tables' was not declared in this scope ha_myhttp.cc:104: error: 'system_charset_info' was not declared in this scope ha_myhttp.cc:105: error: 'hash_get_key' was not declared in this scope ha_myhttp.cc:105: error: 'hash_init' was not declared in this scope ha_myhttp.cc:107: error: 'SHOW_OPTION_YES' was not declared in this scope ha_myhttp.cc:108: error: 'myhttp_create_handler' was not declared in this scope ha_myhttp.cc:109: error: 'HTON_CAN_RECREATE' was not declared in this scope ha_myhttp.cc:111: error: 'DBUG_RETURN' was not declared in this scope ha_myhttp.cc: In function 'int myhttp_done_func(void*)': ha_myhttp.cc:117: error: 'DBUG_ENTER' was not declared in this scope ha_myhttp.cc:121: error: 'myhttp_open_tables' was not declared in this scope ha_myhttp.cc:123: error: 'myhttp_open_tables' was not declared in this scope ha_myhttp.cc:123: error: 'hash_free' was not declared in this scope ha_myhttp.cc:124: error: 'pthread_mutex_destroy' was not declared in this scope ha_myhttp.cc:126: error: 'DBUG_RETURN' was not declared in this scope ha_myhttp.cc: At global scope: ha_myhttp.cc:134: error: 'TABLE' has not been declared ha_myhttp.cc: In function 'MYHTTP_SHARE* get_share(const char*, int*)': ha_myhttp.cc:140: error: 'pthread_mutex_lock' was not declared in this scope ha_myhttp.cc:143: error: 'myhttp_open_tables' was not declared in this scope ha_myhttp.cc:144: error: 'uchar' was not declared in this scope ha_myhttp.cc:145: error: 'hash_search' was not declared in this scope ha_myhttp.cc:143: error: expected primary-expression before '*' token ha_myhttp.cc:143: error: expected primary-expression before ')' token ha_myhttp.cc:143: error: expected `)' before 'hash_search' ha_myhttp.cc:723: error: expected `)' at end of input ha_myhttp.cc:723: error: expected statement at end of input ha_myhttp.cc:723: error: expected `}' at end of input make[1]: *** [ha_myhttp.lo] Error 1 make[1]: Leaving directory `/root/myhttp_engine-0.4/src' make: *** [install-recursive] Error 1 |
./configure --with-mysql=/usr/lib/mysql --libdir=/usr/local/bin/curl and then make install shown above error
|
What does "locate mysql_priv.h" report?
|
I was use locate commaned to search mysql_priv.h and plugin.h before post this problem in
this forum. The search result was nothing. Thanks |
Please help !
|
You need to install mysql-devel or something like that (depends on the distro) to have mysql header files in your system.
|
Quote:
Thanks |
Try to re-compile to see how it goes:
Code:
./configure --with-mysql=/usr/lib/mysql/ |
Quote:
[root@chris myhttp_engine-0.4]# make make all-recursive make[1]: Entering directory `/root/myhttp_engine-0.4' Making all in src make[2]: Entering directory `/root/myhttp_engine-0.4/src' source='ha_myhttp.cc' object='ha_myhttp.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ../config/depcomp \ /bin/sh ../libtool --preserve-dup-deps --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DMYSQL_DYNAMIC_PLUGIN -DUNIV_MUST_NOT_INLINE -DFORCE_INIT_OF_VARS -I/usr/lib/mysql/sql -I/usr/lib/mysql/include -I../include -I/usr/include/libxml2 -fno-implicit-templates -fno-exceptions -fno-rtti -c -o ha_myhttp.lo ha_myhttp.cc libtool: ignoring unknown tag CXX mkdir .libs g++ -DHAVE_CONFIG_H -I. -I.. -DMYSQL_DYNAMIC_PLUGIN -DUNIV_MUST_NOT_INLINE -DFORCE_INIT_OF_VARS -I/usr/lib/mysql/sql -I/usr/lib/mysql/include -I../include -I/usr/include/libxml2 -fno-implicit-templates -fno-exceptions -fno-rtti -c ha_myhttp.cc -fPIC -DPIC -o .libs/ha_myhttp.o ../libtool: line 1101: g++: command not found make[2]: *** [ha_myhttp.lo] Error 1 make[2]: Leaving directory `/root/myhttp_engine-0.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/myhttp_engine-0.4' make: *** [all] Error 2 [root@chris myhttp_engine-0.4]# |
All times are GMT -5. The time now is 12:54 PM. |