LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-08-2013, 01:16 PM   #1
aliga8er
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
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.
 
Old 04-08-2013, 02:32 PM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by aliga8er View Post
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.
 
Old 04-08-2013, 03:03 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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
 
Old 04-09-2013, 12:53 AM   #4
aliga8er
LQ Newbie
 
Registered: Feb 2013
Posts: 17

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


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
OpenSUSE 11.1 + Freeradius + mysql (problem with mysql) JamesWhetherly Linux - Networking 1 09-03-2009 03:10 AM
Can MySQL log on via SSH/bash? mysql:x:27:101:MySQL Server:/var/lib/mysql:/bin/bash Ujjain Linux - Newbie 2 04-24-2009 03:21 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 04:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM


All times are GMT -5. The time now is 10:07 AM.

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