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

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
onlyflyer
帖子: 187
注册时间: 2005-04-20 18:42

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

#1

帖子 onlyflyer » 2005-07-25 16:05

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

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

很急,请帮忙看看。谢谢拉
onlyflyer
帖子: 187
注册时间: 2005-04-20 18:42

#2

帖子 onlyflyer » 2005-07-25 16:06

这是编译过程中的提示,清帮忙看一下:

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:
头像
lyreopera
帖子: 771
注册时间: 2005-05-23 13:38
来自: gdsz

#3

帖子 lyreopera » 2005-07-25 16:08

checking for MySQL library directory... configure: error: Didn't find the mysql library dir in ''


关键是这里没通过……

I can't help !
……
头像
yonsan
帖子: 887
注册时间: 2005-07-01 18:56
来自: 广州市

#4

帖子 yonsan » 2005-07-25 16:27

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没?
上次由 yonsan 在 2005-07-25 16:50,总共编辑 1 次。
I will be back!
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#5

帖子 yongyi » 2005-07-25 16:42

看清楚install 或 readme。你是打什么命令configure的?会不会要指定mysql库的位置?
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
头像
xiaosir
帖子: 46
注册时间: 2005-07-16 7:34
来自: 中国广东

#6

帖子 xiaosir » 2005-07-25 17:18

你需要这个先,不然找不到库文件
libmysqlclient12-dev
无聊的人越来越多,无聊的讨论越来越多
onlyflyer
帖子: 187
注册时间: 2005-04-20 18:42

#7

帖子 onlyflyer » 2005-07-26 8:52

谢谢xiaosir,已经ok了
回复