Closed uzzitm closed 3 years ago
you show only make log, but you say that you get error during cmake. please post cmake log.
No, the above error is when i run make. cmake runns ok with no errors
when you execute command in terminal, you get back log from command. i need to see the complete cmake log.
-- Configuring done
-- Generating done
-- Build files have been written to: /root/verlihub-1.3.0.0/src
[root@server src]# make
Scanning dependencies of target libverlihub
[ 0%] Building CXX object src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o
[ 1%] Building CXX object src/CMakeFiles/libverlihub.dir/casyncsocketserver.cpp.o
[ 2%] Building CXX object src/CMakeFiles/libverlihub.dir/cban.cpp.o
[ 2%] Building CXX object src/CMakeFiles/libverlihub.dir/cbanlist.cpp.o
[ 3%] Building CXX object src/CMakeFiles/libverlihub.dir/ccallbacklist.cpp.o
[ 4%] Building CXX object src/CMakeFiles/libverlihub.dir/cchatconsole.cpp.o
[ 4%] Building CXX object src/CMakeFiles/libverlihub.dir/ccommand.cpp.o
[ 5%] Building CXX object src/CMakeFiles/libverlihub.dir/ccommandcollection.cpp.o
[ 6%] Building CXX object src/CMakeFiles/libverlihub.dir/cconfigbase.cpp.o
[ 6%] Building CXX object src/CMakeFiles/libverlihub.dir/cconfigfile.cpp.o
[ 7%] Building CXX object src/CMakeFiles/libverlihub.dir/cconfigitembase.cpp.o
[ 8%] Building CXX object src/CMakeFiles/libverlihub.dir/cconfmysql.cpp.o
[ 8%] Building CXX object src/CMakeFiles/libverlihub.dir/cconnchoose.cpp.o
[ 9%] Building CXX object src/CMakeFiles/libverlihub.dir/cconndc.cpp.o
[ 10%] Building CXX object src/CMakeFiles/libverlihub.dir/cconnpoll.cpp.o
[ 10%] Building CXX object src/CMakeFiles/libverlihub.dir/cconnselect.cpp.o
[ 11%] Building CXX object src/CMakeFiles/libverlihub.dir/cconntypes.cpp.o
[ 12%] Building CXX object src/CMakeFiles/libverlihub.dir/ccustomredirect.cpp.o
[ 12%] Building CXX object src/CMakeFiles/libverlihub.dir/ccustomredirects.cpp.o
[ 13%] Building CXX object src/CMakeFiles/libverlihub.dir/cdbconf.cpp.o
[ 14%] Building CXX object src/CMakeFiles/libverlihub.dir/cdcclient.cpp.o
[ 14%] Building CXX object src/CMakeFiles/libverlihub.dir/cdcclients.cpp.o
[ 15%] Building CXX object src/CMakeFiles/libverlihub.dir/cdccommand.cpp.o
[ 16%] Building CXX object src/CMakeFiles/libverlihub.dir/cdcconf.cpp.o
[ 16%] Building CXX object src/CMakeFiles/libverlihub.dir/cdcconsole.cpp.o
[ 17%] Building CXX object src/CMakeFiles/libverlihub.dir/cdcproto.cpp.o
[ 18%] Building CXX object src/CMakeFiles/libverlihub.dir/cdctag.cpp.o
[ 18%] Building CXX object src/CMakeFiles/libverlihub.dir/cfreqlimiter.cpp.o
[ 19%] Building CXX object src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o
[ 20%] Building CXX object src/CMakeFiles/libverlihub.dir/cmaxminddb.cpp.o
[ 20%] Building CXX object src/CMakeFiles/libverlihub.dir/cinfoserver.cpp.o
[ 21%] Building CXX object src/CMakeFiles/libverlihub.dir/cinterpolexp.cpp.o
[ 22%] Building CXX object src/CMakeFiles/libverlihub.dir/ckick.cpp.o
[ 22%] Building CXX object src/CMakeFiles/libverlihub.dir/ckicklist.cpp.o
[ 23%] Building CXX object src/CMakeFiles/libverlihub.dir/clog.cpp.o
[ 24%] Building CXX object src/CMakeFiles/libverlihub.dir/cmeanfrequency.cpp.o
[ 24%] Building CXX object src/CMakeFiles/libverlihub.dir/cmessagedc.cpp.o
[ 25%] Building CXX object src/CMakeFiles/libverlihub.dir/cmutex.cpp.o
[ 26%] Building CXX object src/CMakeFiles/libverlihub.dir/cmysql.cpp.o
[ 27%] Building CXX object src/CMakeFiles/libverlihub.dir/cobj.cpp.o
[ 27%] Building CXX object src/CMakeFiles/libverlihub.dir/cpcre.cpp.o
[ 28%] Building CXX object src/CMakeFiles/libverlihub.dir/cpenaltylist.cpp.o
[ 29%] Building CXX object src/CMakeFiles/libverlihub.dir/cpluginbase.cpp.o
[ 29%] Building CXX object src/CMakeFiles/libverlihub.dir/cpluginloader.cpp.o
[ 30%] Building CXX object src/CMakeFiles/libverlihub.dir/cpluginmanager.cpp.o
[ 31%] Building CXX object src/CMakeFiles/libverlihub.dir/cprotocol.cpp.o
[ 31%] Building CXX object src/CMakeFiles/libverlihub.dir/cprotocommand.cpp.o
[ 32%] Building CXX object src/CMakeFiles/libverlihub.dir/cquery.cpp.o
[ 33%] Building CXX object src/CMakeFiles/libverlihub.dir/creglist.cpp.o
[ 33%] Building CXX object src/CMakeFiles/libverlihub.dir/creguserinfo.cpp.o
[ 34%] Building CXX object src/CMakeFiles/libverlihub.dir/cserverdc.cpp.o
[ 35%] Building CXX object src/CMakeFiles/libverlihub.dir/csetuplist.cpp.o
[ 35%] Building CXX object src/CMakeFiles/libverlihub.dir/ctempfunctionbase.cpp.o
[ 36%] Building CXX object src/CMakeFiles/libverlihub.dir/cthread.cpp.o
[ 37%] Building CXX object src/CMakeFiles/libverlihub.dir/cthreadwork.cpp.o
[ 37%] Building CXX object src/CMakeFiles/libverlihub.dir/ctime.cpp.o
[ 38%] Building CXX object src/CMakeFiles/libverlihub.dir/ctimeout.cpp.o
[ 39%] Building CXX object src/CMakeFiles/libverlihub.dir/ctrigger.cpp.o
[ 39%] Building CXX object src/CMakeFiles/libverlihub.dir/ctriggers.cpp.o
[ 40%] Building CXX object src/CMakeFiles/libverlihub.dir/cuser.cpp.o
[ 41%] Building CXX object src/CMakeFiles/libverlihub.dir/cusercollection.cpp.o
[ 41%] Building CXX object src/CMakeFiles/libverlihub.dir/cvhplugin.cpp.o
[ 42%] Building CXX object src/CMakeFiles/libverlihub.dir/cvhpluginmgr.cpp.o
[ 43%] Building CXX object src/CMakeFiles/libverlihub.dir/cworkerthread.cpp.o
[ 43%] Building CXX object src/CMakeFiles/libverlihub.dir/czlib.cpp.o
[ 44%] Building CXX object src/CMakeFiles/libverlihub.dir/i18n.cpp.o
[ 45%] Building CXX object src/CMakeFiles/libverlihub.dir/script_api.cpp.o
[ 45%] Building CXX object src/CMakeFiles/libverlihub.dir/stdafx.cpp.o
[ 46%] Building CXX object src/CMakeFiles/libverlihub.dir/stringutils.cpp.o
[ 47%] Building CXX object src/CMakeFiles/libverlihub.dir/thasharray.cpp.o
[ 47%] Building CXX object src/CMakeFiles/libverlihub.dir/tpluginbase.cpp.o
make[2]: No rule to make target /usr/lib64/libmysqlclient.so', needed by
src/libverlihub.so'. Stop.
make[1]: [src/CMakeFiles/libverlihub.dir/all] Error 2
make: *** [all] Error 2
install mariadb-devel if you use mariadb, or install mysql-devel if you use mysql.
.. or even mysql-community-devel if you use community version.
mariadb-devel is already installed together with mariadb following this tutorial
https://mariadb.com/resources/blog/installing-mariadb-10-on-centos-7-rhel-7/
yum install mariadb-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile
oh, i see what is missing > mariadb-libs
verlihub needs a shared lib (.so) to link against, but it can not find.
mariadb-libs is also installed. How can i link the .so or what is it needed to fix this?
see if the file actually exists > /usr/lib64/libmysqlclient.so
whereis libmysqlclient.so libmysqlclient: /usr/lib64/libmysqlclient.a /usr/lib64/libmysqlclient.so
in winscp link looks broken(with red), dont know why - this is a fresh centos 7 install
fixed by uninstalling MariaDB 10.5.9 and installing MariaDB 5.5.68
@uzzitm
oh shit. why so huge version difference?
As i looks latest centos 7 comes default with 5.x but the lastest mariadb is 10x so thats why i installed it
aha, so you installed rpm that is ment for newer distro. in that case i would suggest you to compile mariadb 10.x manually with shared lib that verlihub can compile against, in case you are interested in keeping newer version.
but i noticed other thing instead. you use latest mariadb but you use lua 5.1 which is 15 years old :-P
error when running cmake ..
[root@server build]# make make[2]: No rule to make target
/usr/lib64/libmysqlclient.so', needed by
src/libverlihub.so'. Stop. make[1]: [src/CMakeFiles/libverlihub.dir/all] Error 2 make: *** [all] Error 2any help please?