configure: error: не удалось найти версию библиотеки - PullRequest
0 голосов
/ 31 октября 2018

Я собираю эту программу DNP3 , и когда я следую инструкциям по сборке ./configure не создает файл make. Когда я запускаю его, я получаю следующий вывод:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for boostlib >= 1.43... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether the Boost::Date_Time library is available... yes
configure: error: Could not find a version of the library!

Я думаю, что последняя строка может быть причиной проблемы, но я понятия не имею, что такое "библиотека". Я установил boost с помощью "sudo apt-get install libboost-all-dev", так что я не думаю, что это все, но понятия не имею.

Ответы [ 2 ]

0 голосов
/ 24 апреля 2019

Другой ответ почти работал для меня. Попробуйте это, что более вероятно, если вы работаете на 64-битной машине:

./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu/

(работал в Ubuntu 14.04)

0 голосов
/ 05 апреля 2019

Мне удалось обойти это, используя следующее изменение для . / Configure команда:

./configure --with-boost-libdir=/usr/lib/i386-linux-gnu/
...