Bug 243350 - hello i need help please with a error mysql
Summary: hello i need help please with a error mysql
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 11.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Rodrigo Osorio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-14 12:57 UTC by mircx1
Modified: 2020-03-23 21:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mircx1 2020-01-14 12:57:05 UTC
Hello i try run NeonServV5 from freebsd 11.3 and after i install everything from the system i get error
In file included from src/EventLogger.c:20:
src/mysqlConn.h:21:10: fatal error: mysql.h: No such file or directory
   21 | #include <mysql.h>
      |          ^~~~~~~~~
compilation terminated.
gmake[1]: *** [Makefile:1822: src/EventLogger.o] Error 1
gmake[1]: Leaving directory '/usr/home/asher/NeonServV5'
gmake: *** [Makefile:934: all] Error 2
before this run but now after i make update is not
http://git.pk910.de/?p=NeonServV5.git;a=summary
Comment 1 Rodrigo Osorio freebsd_committer freebsd_triage 2020-01-14 21:48:29 UTC
Hi,

As far as I can see NeonServe requires mysql to be built,
you should probably need to install mysql, using pkg

# pkg install mysql57-client-5.7.28

I'm not sure this will solve all the issues but allows you to the
next step :)

Happy hacking
Comment 2 Rodrigo Osorio freebsd_committer freebsd_triage 2020-01-14 22:02:38 UTC
(In reply to Rodrigo Osorio from comment #1)

My bad, the following is enough 

# pkg install mysql57-client
Comment 3 mircx1 2020-01-14 22:38:20 UTC
i install everything and i get error after i do gmake before is working fine
Comment 4 Rodrigo Osorio freebsd_committer freebsd_triage 2020-01-14 22:47:43 UTC
My bad, you right.
In the meantime I do the build and found the fix, if you do the following:

./configure --with-mysql-lib=/usr/local/lib/mysql --with-mysql=/usr/local/include/mysql


After that, we still having an issue because mysql/errmsg.h is not found. You can bypass this error by adding manually "#include <errmsg.h>" in src/mysqlConn.h after the #include <mysql.h> and run gmake.

Now now NeonServV5 build without error
Comment 5 mircx1 2020-01-14 22:54:36 UTC
thanks broo
Comment 6 Rodrigo Osorio freebsd_committer freebsd_triage 2020-01-14 23:02:54 UTC
Question, are you building this tool on your own or trying to make a port for it ? If the answer is 'making a port' maybe I can help.
Comment 7 mircx1 2020-01-15 06:49:35 UTC
i do make but when i run the neonserv is start but he not connection to server