分页: 1 / 1

自己编译软件大约有十来次也没有成功,请各位大虾一定帮忙。

发表于 : 2005-07-25 16:05
onlyflyer
以前都是编译着玩,下载下来一个源码包编译试试,不行就拉到,也没有深入追究。
但是,这次因为工作需要必须要编译mysql++ API,我按照他们的说明编译的,但是不行,而且我机器上也有build-essential

编译列表的错误请看下面的回复帖子。大体情况是这样的。每次到make这一步的时候都会提示找不到makefile文件,不知道大家伙有没有遇到这种情况?

很急,请帮忙看看。谢谢拉

发表于 : 2005-07-25 16:06
onlyflyer
这是编译过程中的提示,清帮忙看一下:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for strtol... yes
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking for MySQL library directory... configure: error: Didn't find the mysql library dir in ''
liuhui@onlyflyer:~/source/mysql++$ make
make: *** 没有指明目标并且找不到 makefile。 停止。

liuhui@onlyflyer:~/source/mysql++$ sudo make
Password:

发表于 : 2005-07-25 16:08
lyreopera
checking for MySQL library directory... configure: error: Didn't find the mysql library dir in ''


关键是这里没通过……

I can't help !

发表于 : 2005-07-25 16:27
yonsan
onlyflyer 写了:这是编译过程中的提示,清帮忙看一下:
checking for MySQL library directory... configure: error: Didn't find the mysql library dir in ''
liuhui@onlyflyer:~/source/mysql++$ make
make: *** 没有指明目标并且找不到 makefile。 停止。
还未安装相关的依赖程序库!

在编译mysql++ API 前你装好了mysql没?

发表于 : 2005-07-25 16:42
yongyi
看清楚install 或 readme。你是打什么命令configure的?会不会要指定mysql库的位置?

发表于 : 2005-07-25 17:18
xiaosir
你需要这个先,不然找不到库文件
libmysqlclient12-dev

发表于 : 2005-07-26 8:52
onlyflyer
谢谢xiaosir,已经ok了