我正在尝试安装 IRC 服务,但出现以下错误,我想知道是否有人以前见过此情况并有解决方案 谢谢
g++ -DHAVE_CONFIG_H -I. -I.. -g -O3 -Wall -Igoogle/sparsehash/src/ -I/usr/include/mysql -MT base64.o -MD -MP -MF .deps/base64.Tpo -c -o base64.o base64.cpp
In file included from base64.cpp:21:0:
stdafx.h:64:19: error fatal: mysql.h: No existe el archivo o el directorio
compilación terminada.
make[2]: *** [base64.o] Error 1
make[2]: se sale del directorio «/home/yeremay/services-master/Nucleo»
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio «/home/yeremay/services-master»`
make: *** [all] Error 2
最佳答案
您需要在 /usr/include/mysql
中有 mysql.h 文件,这就是错误消息所说的内容。
或者将其更改为-I/usr/include
关于c++ - 错误服务 irc mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21577796/