LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot compile mysql 5.6-10 server on opensuse 12.1 (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-compile-mysql-5-6-10-server-on-opensuse-12-1-a-4175457380/)

aliga8er 04-08-2013 12:16 PM

Cannot compile mysql 5.6-10 server on opensuse 12.1
 
Dear All

I am seem to be having problem in compiling mysql 5.6 on opensuse 12.1 64-bit OS. What i did was downloaded the mysql source code from the mysql website in tar format. I placed the mysql-5.6-10.tar in doucment folder. Extracted it, ran the cmake command (which worked fine) but then when i ran the make command it gave me the following error message:

linux-gt11:/home/omi/Documents/mysql-5.6.10 # make
[ 0%] Built target INFO_BIN
[ 0%] Built target INFO_SRC
[ 0%] Built target abi_check
[ 1%] Built target zlib
[ 2%] Built target yassl
[ 4%] Built target taocrypt
[ 4%] Building C object cmd-line-utils/libedit/CMakeFiles/edit.dir/search.c.o
In file included from /usr/local/include/regex.h:11,
from /home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:48:
/usr/local/include/w_defines.h:119:18: error: cerrno: No such file or directory
/usr/local/include/w_defines.h:120:19: error: cstddef: No such file or directory
/usr/local/include/w_defines.h:121:19: error: cstdlib: No such file or directory
/usr/local/include/w_defines.h:122:19: error: climits: No such file or directory
/usr/local/include/w_defines.h:146:2: warning: #warning large file off_t support seems to be missing accoring to sysconf !
In file included from /usr/local/include/regex.h:11,
from /home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:48:
/usr/local/include/w_defines.h:164: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘namespace’
/usr/local/include/w_defines.h:167: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
/usr/local/include/w_defines.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
In file included from /home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:48:
/usr/local/include/regex.h:61: error: expected identifier or ‘(’ before string constant
/home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c: In function ‘el_match’:
/home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:115: error: ‘regex_t’ undeclared (first use in this function)
/home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:115: error: (Each undeclared identifier is reported only once
/home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:115: error: for each function it appears in.)
/home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:115: error: expected ‘;’ before ‘re’
/home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:129: warning: implicit declaration of function ‘w_regcomp’
/home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:129: error: ‘re’ undeclared (first use in this function)
/home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:130: warning: implicit declaration of function ‘w_regexec’
/home/omar/Documents/mysql-5.6.10/cmd-line-utils/libedit/search.c:132: warning: implicit declaration of function ‘w_regfree’
make[2]: *** [cmd-line-utils/libedit/CMakeFiles/edit.dir/search.c.o] Error 1
make[1]: *** [cmd-line-utils/libedit/CMakeFiles/edit.dir/all] Error 2
make: *** [all] Error 2

Thanking you in advance.

eklavya 04-08-2013 01:32 PM

Quote:

Originally Posted by aliga8er (Post 4927667)
Dear All
I placed the mysql-5.6-10.tar in doucment folder. Extracted it, ran the cmake command (which worked fine) but then when i ran the make command it gave me the following error message

What are you trying to do?
You are making things hard for yourself.
If you are trying to learn then first read this.
http://dev.mysql.com/doc/refman/5.1/...tallation.html
Why don't you install it simply like actual process to install mysql on Linux after all it is just a database.
I think you should try hard on programming language (php or ruby) for you have installed mysql that would really a big deal.

John VV 04-08-2013 02:03 PM

Are you aware that opensuse 12.1 will hit it's End of Life in 37 DAYS

time to install OpenSUSE 12.3

did you edit the Makefile to match your install ?
Did you read and fallow the install and configure instructions ?
There are a lot of things you have to do first
including creating a non root user " mysql" with out a home folder


OpenSUSE normally dose not use the "/usr/local" folder
as per the error
Quote:

/usr/local/include/w_defines.h:119:18: error: cerrno: No such file or directory

aliga8er 04-08-2013 11:53 PM

Thank you for your reply.

@eklavya I followed the instruction given on the this link http://dev.mysql.com/doc/mysql-sourc...tribution.html

I can easily install mysqlDB install from yast2 and it works fine. But i need to study source code and make changes as a part of my class project.

@JohnVV I will read and follow the instructions given in the source distribution and try to see if i have missed anything during installation.


All times are GMT -5. The time now is 04:45 AM.