免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3376 | 回复: 7
打印 上一主题 下一主题

大家都来分析一下 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-26 11:57 |只看该作者 |倒序浏览
在solaris10*86下,不能make pam_mysql。大家分析一下是什么原因?


bash-3.00# pwd
/lost+found/wget-vsftp/pam_mysql-0.7RC1
bash-3.00# which make
/usr/local/bin/make
bash-3.00# which mysql
/usr/sfw/bin/mysql
bash-3.00# ./configure

checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for bison... bison -y
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

bash-3.00# cat config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by pam_mysql configure 0.7RC1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = solaris10-vsftp
uname -m = i86pc
uname -r = 5.10
uname -s = SunOS
uname -v = Generic

/usr/bin/uname -p = i386
/bin/uname -X     = System = SunOS
Node = solaris10-vsftp
Release = 5.10
KernelID = Generic
Machine = i86pc
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1

/bin/arch              = i86pc
/usr/bin/arch -k       = i86pc
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/openwin/bin
PATH: /bin
PATH: /usr/ucb
PATH: /usr/openwin/bin
PATH: /usr/dt/bin
PATH: /usr/local/bin
PATH: /usr/sfw/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1571: checking for a BSD-compatible install
configure:1626: result: ./install-sh -c
configure:1637: checking whether build environment is sane
configure:1680: result: yes
configure:1695: checking whether make sets $(MAKE)
configure:1715: result: yes
configure:1747: checking for working aclocal-1.4
configure:1758: result: missing
configure:1762: checking for working autoconf
configure:1773: result: missing
configure:1777: checking for working automake-1.4
configure:1788: result: missing
configure:1792: checking for working autoheader
configure:1803: result: missing
configure:1807: checking for working makeinfo
configure:1814: result: found
configure:1829: checking whether to enable maintainer-specific portions of Makefiles
configure:1838: result: no
configure:1864: checking for bison
configure:1880: found /usr/sfw/bin/bison
configure:1890: result: bison -y
configure:1953: checking for g++
configure:1969: found /usr/local/bin/g++
configure:1979: result: g++
configure:1995: checking for C++ compiler version
configure:1998: g++ --version </dev/null >&5
g++ (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2001: $? = 0
configure:2003: g++ -v </dev/null >&5
Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
configure:2006: $? = 0
configure:2008: g++ -V </dev/null >&5
g++: `-V' option must have argument
configure:2011: $? = 1
configure:2034: checking for C++ compiler default output file name
configure:2037: g++    conftest.cc  >&5
configure:2040: $? = 0
configure:2086: result: a.out
configure:2091: checking whether the C++ compiler works
configure:2097: ./a.out
ld.so.1: ./a.out: fatal: libstdc++.so.6: open failed: No such file or directory
./configure: line 2098:  1021 Killed                  ./$ac_file
configure:2100: $? = 137
configure:2109: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_openssl_CFLAGS_set=
ac_cv_env_openssl_CFLAGS_value=
ac_cv_env_openssl_LIBS_set=
ac_cv_env_openssl_LIBS_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_prog_YACC='bison -y'
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='/lost+found/wget-vsftp/pam_mysql-0.7RC1/missing aclocal-1.4'
ALLOCA=''
AR=''
AUTOCONF='/lost+found/wget-vsftp/pam_mysql-0.7RC1/missing autoconf'
AUTOHEADER='/lost+found/wget-vsftp/pam_mysql-0.7RC1/missing autoheader'
AUTOMAKE='/lost+found/wget-vsftp/pam_mysql-0.7RC1/missing automake-1.4'
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXFLAGS=''
DEFS=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
INCLUDES=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo'
OBJEXT=''
PACKAGE='pam_mysql'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='pam_mysql'
PACKAGE_STRING='pam_mysql 0.7RC1'
PACKAGE_TARNAME='pam_mysql'
PACKAGE_VERSION='0.7RC1'
PAM_MODS_DIR=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='0.7RC1'
YACC='bison -y'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX='g++'
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
ac_pt_PKG_CONFIG=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
openssl_CFLAGS=''
openssl_LIBS=''
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "pam_mysql"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "pam_mysql"
#define PACKAGE_STRING "pam_mysql 0.7RC1"
#define PACKAGE_TARNAME "pam_mysql"
#define PACKAGE_VERSION "0.7RC1"
#define VERSION "0.7RC1"

configure: exit 1
bash-3.00# make
make: *** No targets specified and no makefile found.  Stop.
bash-3.00#

[ 本帖最后由 pet-dtg 于 2007-12-26 11:58 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-12-26 14:59 |只看该作者

回复 #1 pet-dtg 的帖子

没有人
帮忙试试看也行,在solaris下make pam_mysql
前提要先装mysql

[ 本帖最后由 pet-dtg 于 2007-12-26 15:05 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-12-26 15:08 |只看该作者
用gmake,安装automake,autoconf,aclocal,autoheader包

论坛徽章:
0
4 [报告]
发表于 2007-12-26 15:13 |只看该作者
1 你的gcc版本太高
2 solaris 10 自带的gcc在/us/sfw/bin目录下,请把它加在环境变量PATH里面,并且要在/usr/local/bin的前面,因为你原先指定的gcc在/usr/local/bin下面。
3 用solaris 10自带的gcc重新配置编译mysql

论坛徽章:
0
5 [报告]
发表于 2007-12-27 14:45 |只看该作者

回复 #4 codefan 的帖子

改了环境变量,用回系统自带的gcc跟make,但是用“./configure”的时候报错说,cannot locate mysql client library。solaris的mysql还有客户端的吗?我记得只有redhat里面的才有service跟client吧。mysql是用回系统自带的应该没有什么问题吧?

论坛徽章:
0
6 [报告]
发表于 2007-12-27 15:28 |只看该作者

回复 #3 artech 的帖子

三楼的,应该把autoconf跟automake装了就可以了吧aclocal跟autoheader两个找不到,应该是包含在里面的。撞了这两个,但是用“./configure”的时候还是autoconf---found 但是automake跟aclocal和autoheader--missing阿,报错跟上面一样都说mysql client library找不到。

论坛徽章:
0
7 [报告]
发表于 2007-12-27 19:27 |只看该作者
软件包到sunfreeware上下载
./configure 时指定mysql client library所在位置
./configure --help查看一下

论坛徽章:
0
8 [报告]
发表于 2007-12-29 14:52 |只看该作者

回复 #7 artech 的帖子

我是用系统自带的mysql,版本也够新啦,自己编译安装问题比较多
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP