LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2008, 03:16 AM   #1
leiw
Member
 
Registered: Apr 2006
Posts: 131

Rep: Reputation: 15
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
 
Old 09-24-2008, 07:25 AM   #2
leiw
Member
 
Registered: Apr 2006
Posts: 131

Original Poster
Rep: Reputation: 15
Please help
 
Old 09-24-2008, 07:37 AM   #3
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
try this command:
Quote:
locate mysqlclient
If this doesn't work:
Quote:
find / -name '*mysqlclient*'
 
Old 09-24-2008, 09:13 AM   #4
leiw
Member
 
Registered: Apr 2006
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Agrouf View Post
try this command:

If this doesn't work:
[root@test myhttp_engine-0.4]# locate mysqlclient
/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
 
Old 09-24-2008, 09:25 AM   #5
leiw
Member
 
Registered: Apr 2006
Posts: 131

Original Poster
Rep: Reputation: 15
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

Last edited by leiw; 09-24-2008 at 09:26 AM.
 
Old 09-24-2008, 10:09 AM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
--with-mysql=/usr/lib/mysql/
 
Old 09-24-2008, 11:07 AM   #7
leiw
Member
 
Registered: Apr 2006
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Agrouf View Post
--with-mysql=/usr/lib/mysql/
[root@test myhttp_engine-0.4]# make install
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
 
Old 09-24-2008, 11:08 AM   #8
leiw
Member
 
Registered: Apr 2006
Posts: 131

Original Poster
Rep: Reputation: 15
./configure --with-mysql=/usr/lib/mysql --libdir=/usr/local/bin/curl and then make install shown above error
 
Old 09-24-2008, 01:24 PM   #9
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
What does "locate mysql_priv.h" report?
 
Old 09-24-2008, 10:23 PM   #10
leiw
Member
 
Registered: Apr 2006
Posts: 131

Original Poster
Rep: Reputation: 15
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
 
Old 09-25-2008, 06:13 AM   #11
leiw
Member
 
Registered: Apr 2006
Posts: 131

Original Poster
Rep: Reputation: 15
Please help !
 
Old 09-25-2008, 07:26 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,523

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
You need to install mysql-devel or something like that (depends on the distro) to have mysql header files in your system.
 
Old 09-25-2008, 08:56 AM   #13
leiw
Member
 
Registered: Apr 2006
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
You need to install mysql-devel or something like that (depends on the distro) to have mysql header files in your system.
I used yum to install mysql-devel, what can I do next?

Thanks
 
Old 09-25-2008, 09:14 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,523

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
Try to re-compile to see how it goes:
Code:
./configure --with-mysql=/usr/lib/mysql/
make
make install
 
Old 09-25-2008, 10:50 AM   #15
leiw
Member
 
Registered: Apr 2006
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Try to re-compile to see how it goes:
Code:
./configure --with-mysql=/usr/lib/mysql/
make
make install
Same problem

[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]#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tarball Install Sabayon Question rrrssssss Linux - Software 7 02-29-2008 11:34 AM
QT3,use from CD or complie myself? ngan_yine Mandriva 0 01-14-2004 09:13 AM
complie under qt macro-linux Programming 10 11-06-2003 06:18 AM
Tarball question satimis Linux - General 1 09-01-2003 11:09 AM
source and tarball question Pwcca Linux - Software 1 03-13-2003 06:54 AM


All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration