Cannot Detect libdbi
Closed this issue · 8 comments
This thing cannot detect libdbi to save it's life!
libdbi is missing
Hi,
I need a bit more information than that. What distribution do you try to compile it on? Have you installed the libdbi headers (apt -> libdbi-dev, yum -> libdbi-devel)?
If you have the possibility I recommend to use one of the packages instead of compiling it yourself, because they also include init scripts for autostart.
Best regards,
Hendrik
Well, I am trying it on ubuntu 16.04 and it was compiled error free.
apt update
apt install g++
apt install make
apt install cmake
apt install libssl-dev
apt install libjsoncpp-dev
apt install libcrypto++-dev
apt install libdbi-dev
apt install libboost-all-dev
apt install libdbd-mysql
git clone https://github.com/zecure/shadowd.git
cd shadowd/
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release ..
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- program_options
-- system
-- thread
-- regex
-- unit_test_framework
-- chrono
-- date_time
-- atomic
-- Configuring done
-- Generating done
-- Build files have been written to: /root/shadowd/build
Yea, there should really be no problem compiling it in any modern Linux distribution. That is, if the libraries are installed.
Since @djeraseit did not respond in 3 weeks I consider this fixed. If not feel free to reopen.
Despite that I have installed the package libdbi-dev
, still getting the error libdbi is missing
.
p.s. Ubuntu Server 16.04
@talhakabakus have you installed libdbi-dev
after you ran cmake
? It creates a cache and does not detect that the lib is now available. You have to remove the cache and run cmake
again.
cd ..
rm -rf build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release ..
No activity for a month, I consider this solved.
Sorry for the delay, have exactly executed the commands you mentioned above, getting an error like this:
CMake Error: The source directory "/home/talha/git" does not appear to contain CMakeLists.txt.
Have you maybe deleted a file too many? Just download the source code again.