免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: confuseding
打印 上一主题 下一主题

[Mail] 编译courier-authlib-0.58时出现的问题。 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-07-18 14:16 |只看该作者
原帖由 Weikey 于 2008-7-18 14:04 发表
$ ./configure --各参数
$ make
# make install

用这个方法试试!

我就是这样做的啊。但make 过不去了。

论坛徽章:
0
12 [报告]
发表于 2008-07-18 14:20 |只看该作者
原帖由 confuseding 于 2008-7-18 14:16 发表

我就是这样做的啊。但make 过不去了。



把你配置贴上来。。

且,其他软件的信息,譬如:头文件、库文件位置也都贴出来,看看。。。

论坛徽章:
0
13 [报告]
发表于 2008-07-18 14:26 |只看该作者
原帖由 Weikey 于 2008-7-18 14:20 发表



把你配置贴上来。。

且,其他软件的信息,譬如:头文件、库文件位置也都贴出来,看看。。。
  1. ./configure --prefix=/usr/lib/authlib --without-authpam --without-authcustom --without-authpgsql --without-authldap --without-authuserdb --without-authpwd --without-authshadow --without-authvchkpw --with-authmysql  --with-authdaemonvar=/usr/lib/authlib/var --mandir=/usr/lib/man --without-stdheaderdir --sysconfdir=/usr/lib/authlib/etc --with-redhat -with-mysql-libs=/usr/local/mysql/lib/mysql --with-mysql-includes=/usr/local/mysql/include/mysql
复制代码

  1. [root@bak postfix]# gcc -v
  2. Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
  3. Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
  4. Thread model: posix
  5. gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)
复制代码


mysql 的安在/usr/local 下了。  还需要贴些什么呢?

论坛徽章:
0
14 [报告]
发表于 2008-07-18 15:20 |只看该作者
楼主:
--with-mysql-includes=/usr/local/mysql/include/mysql
应该是:
--with-mysql-includes=/usr/local/mysql/include
难道include目录下还有一个mysql目录?我是使用系统自带的MySQL,偷懒。。。

另外,我很疑惑:
--prefix=/usr/lib/authlib
你怎么把程序安装到那里取了呢?不过应该没关系,建议
--prefix=/usr/local/authlib

还有:
--with-authmysql
应该是:
--with-authmysql=path
你可以:
./configure --help  看看具体的情况咯!
要指定mysql安装的路径哦,我在这个地方曾经出过错误,我干脆不使用--with-authmysql选项,最后还是很顺利安装完成了。因为,指定了库文件和头文件,不配置 --with-authmysql 应该也行的!

[ 本帖最后由 Weikey 于 2008-7-18 15:23 编辑 ]

论坛徽章:
0
15 [报告]
发表于 2008-07-18 15:54 |只看该作者
原帖由 Weikey 于 2008-7-18 15:20 发表
楼主:
--with-mysql-includes=/usr/local/mysql/include/mysql
应该是:
--with-mysql-includes=/usr/local/mysql/include
难道include目录下还有一个mysql目录?我是使用系统自带的MySQL,偷懒。。。

另 ...

我的includes下真有mysql
  1. [root@bak mysql]# pwd
  2. /usr/local/mysql/include/mysql
  3. [root@bak mysql]# ls
  4. errmsg.h    my_alloc.h   my_getopt.h  my_no_pthread.h  mysqld_error.h  mysql_version.h  readline.h     sslopt-longopts.h
  5. keycache.h  my_config.h  my_global.h  my_pthread.h     mysql_embed.h   my_sys.h         sql_common.h   sslopt-vars.h
  6. m_ctype.h   my_dbug.h    my_list.h    my_semaphore.h   mysql.h         my_xml.h         sql_state.h    typelib.h
  7. m_string.h  my_dir.h     my_net.h     mysql_com.h      mysql_time.h    raid.h           sslopt-case.h
复制代码

不好意思我很初级,只是按照帖子那么做的。怕该了以后,后面出麻烦。呵呵
非常感谢指点。以后注意。我想这应该就是我GCC的问题了。

论坛徽章:
0
16 [报告]
发表于 2008-07-18 15:57 |只看该作者
一般是
./configure
make
make setup / make install

许多问题在./configure中可以看出来, 缺什么再安装上什么, 直到./configure通过.

论坛徽章:
0
17 [报告]
发表于 2008-07-18 16:09 |只看该作者
原帖由 思一克 于 2008-7-18 15:57 发表
一般是
./configure
make
make setup / make install

许多问题在./configure中可以看出来, 缺什么再安装上什么, 直到./configure通过.

恩谢谢。
我在用
  1. ./configure --prefix=/usr/lib/authlib --without-authpam --without-authcustom --without-authpgsql --without-authldap --without-authuserdb --without-authpwd --without-authshadow --without-authvchkpw --with-authmysql  --with-authdaemonvar=/usr/lib/authlib/var --mandir=/usr/lib/man --without-stdheaderdir --sysconfdir=/usr/lib/authlib/etc --with-redhat -with-mysql-libs=/usr/local/mysql/lib/mysql --with-mysql-includes=/usr/local/mysql/include/mysql
复制代码

的时候make 不能通过报错是
  1. make  all-recursive
  2. make[1]: Entering directory `/bin/null/postfix/courier-authlib-0.59.1'
  3. Making all in gdbmobj
  4. make[2]: Entering directory `/bin/null/postfix/courier-authlib-0.59.1/gdbmobj'
  5. make  all-am
  6. make[3]: Entering directory `/bin/null/postfix/courier-authlib-0.59.1/gdbmobj'
  7. Compiling gdbmobj.c
  8. Compiling gdbmobj2.c
  9. Compiling gdbmobj3.c
  10. Linking libgdbmobj.la
  11. Compiling testgdbm.C
  12. Linking testgdbm
  13. libtool: ignoring unknown tag CXX
  14. testgdbm.o(.text+0x54a): In function `main':
  15. /bin/null/postfix/courier-authlib-0.59.1/gdbmobj/gdbmobj.h:54: undefined reference to `_Unwind_Resume'
  16. collect2: ld returned 1 exit status
  17. make[3]: *** [testgdbm] 错误 1
  18. make[3]: Leaving directory `/bin/null/postfix/courier-authlib-0.59.1/gdbmobj'
  19. make[2]: *** [all] 错误 2
  20. make[2]: Leaving directory `/bin/null/postfix/courier-authlib-0.59.1/gdbmobj'
  21. make[1]: *** [all-recursive] 错误 1
  22. make[1]: Leaving directory `/bin/null/postfix/courier-authlib-0.59.1'
  23. make: *** [all] 错误 2
复制代码


我在网上查如果报 undefined reference to `_Unwind_Resume' 就加上 -Wl,-Bdynamic -lgcc_s 这条语句。
所以改用如下./configure
  1. ./configure --prefix=/usr/lib/authlib --without-authpam --without-authcustom --without-authpgsql --without-authldap --without-authuserdb --without-authpwd --without-authshadow --without-authvchkpw --with-authmysql  --with-authdaemonvar=/usr/lib/authlib/var --mandir=/usr/lib/man --without-stdheaderdir --sysconfdir=/usr/lib/authlib/etc --with-redhat -with-mysql-libs=/usr/local/mysql/lib/mysql --with-mysql-includes=/usr/local/mysql/include/mysql CXX=/usr/bin/g++ CC='/usr/bin/gcc  -Wl,-Bdynamic -lgcc_s'
复制代码


在make 能通过但会出下面的信息

  1. Compiling authsaslclientcramsha1.c
  2. gcc: -Bdynamic: linker input file unused because linking not done
  3. gcc: -lgcc_s: linker input file unused because linking not done
  4. Compiling authsaslclientlogin.c
  5. gcc: -Bdynamic: linker input file unused because linking not done
  6. gcc: -lgcc_s: linker input file unused because linking not done
  7. Compiling authsaslclientplain.c
  8. gcc: -Bdynamic: linker input file unused because linking not done
  9. gcc: -lgcc_s: linker input file unused because linking not done
  10. Linking libcourierauthsaslclient.la
  11. Compiling authpwdenumerate.c
  12. gcc: -Bdynamic: linker input file unused because linking not done
  13. gcc: -lgcc_s: linker input file unused because linking not done
  14. Compiling authsyschangepwd.c
  15. gcc: -Bdynamic: linker input file unused because linking not done
  16. gcc: -lgcc_s: linker input file unused because linking not done
  17. Compiling authsyscommon.c
  18. gcc: -Bdynamic: linker input file unused because linking not done
  19. gcc: -lgcc_s: linker input file unused because linking not done
  20. Compiling cramlib.c
  21. gcc: -Bdynamic: linker input file unused because linking not done
  22. gcc: -lgcc_s: linker input file unused because linking not done
  23. Compiling checkpassword.c
  24. gcc: -Bdynamic: linker input file unused because linking not done
  25. gcc: -lgcc_s: linker input file unused because linking not done
  26. Compiling cryptpassword.c
  27. gcc: -Bdynamic: linker input file unused because linking not done
  28. gcc: -lgcc_s: linker input file unused because linking not done
  29. Compiling checkpasswordmd5.c
  30. gcc: -Bdynamic: linker input file unused because linking not done
  31. gcc: -lgcc_s: linker input file unused because linking not done
  32. Compiling checkpasswordsha1.c
  33. gcc: -Bdynamic: linker input file unused because linking not done
  34. gcc: -lgcc_s: linker input file unused because linking not done
  35. Linking libcourierauthcommon.la
  36. Compiling authmysql.c
  37. gcc: -Bdynamic: linker input file unused because linking not done
  38. gcc: -lgcc_s: linker input file unused because linking not done
  39. Compiling preauthmysql.c
  40. gcc: -Bdynamic: linker input file unused because linking not done
  41. gcc: -lgcc_s: linker input file unused because linking not done
  42. Compiling authmysqllib.c
  43. gcc: -Bdynamic: linker input file unused because linking not done
  44. gcc: -lgcc_s: linker input file unused because linking not done
  45. Linking libauthmysql.la
  46. Compiling authpipe.c
  47. gcc: -Bdynamic: linker input file unused because linking not done
  48. gcc: -lgcc_s: linker input file unused because linking not done
  49. Compiling authpipelib.c
  50. gcc: -Bdynamic: linker input file unused because linking not done
  51. gcc: -lgcc_s: linker input file unused because linking not done
  52. Linking libauthpipe.la
  53. Compiling authinfo.c
  54. gcc: -Bdynamic: linker input file unused because linking not done
  55. gcc: -lgcc_s: linker input file unused because linking not done
  56. Linking courierauthconfig
  57. Compiling authdaemontest.c
  58. gcc: -Bdynamic: linker input file unused because linking not done
  59. gcc: -lgcc_s: linker input file unused because linking not done
  60. Linking authdaemontest
  61. Compiling authmksock.c
  62. gcc: -Bdynamic: linker input file unused because linking not done
  63. gcc: -lgcc_s: linker input file unused because linking not done
  64. Linking authmksock
  65. Compiling authdaemond.c
  66. gcc: -Bdynamic: linker input file unused because linking not done
  67. gcc: -lgcc_s: linker input file unused because linking not done
  68. Linking authdaemondprog
  69. gcc: -Bdynamic: linker input file unused because linking not done
  70. gcc: -lgcc_s: linker input file unused because linking not done
  71. Compiling authtest.c
  72. gcc: -Bdynamic: linker input file unused because linking not done
  73. gcc: -lgcc_s: linker input file unused because linking not done
  74. Linking authtest
  75. Compiling authenumerate.c
  76. gcc: -Bdynamic: linker input file unused because linking not done
  77. gcc: -lgcc_s: linker input file unused because linking not done
  78. Linking authenumerate
  79. Compiling authpasswd.c
  80. gcc: -Bdynamic: linker input file unused because linking not done
  81. gcc: -lgcc_s: linker input file unused because linking not done
  82. Linking authpasswd
  83. CONFIG_FILES=authlib.3 CONFIG_HEADERS= /bin/sh ./config.status
  84. config.status: creating authlib.3
  85. config.status: executing depfiles commands
  86. make[2]: Leaving directory `/bin/null/postfix/courier-authlib-0.59.1'
  87. make[1]: Leaving directory `/bin/null/postfix/courier-authlib-0.59.1'
复制代码

等等。不知道我 在直接 make install 以后会不会出现问题。
是不是我的mysql 库没有被编译进去还是什么原因?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP