免费注册 查看新帖 |

Chinaunix

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

求助!Solaris 10 编译mod_perl 很多错误,帮忙看看!着急! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-11-24 10:13 |只看该作者 |倒序浏览
本帖最后由 laowang_2011 于 2011-11-24 14:47 编辑

平台: Solaris 10  SPARC

版本:mod_perl-2.0.5

在运行perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs 的时候,报以下警告信息:


Writing Makefile for ModPerl::Global
Writing Makefile for ModPerl::Util
Writing Makefile for ModPerl
Writing Makefile for ModPerl::WrapXS
Note (probably harmless): No library found for -lexpat                        ------------->这里没有找到 lexpat,但我之前就装有expat的了。
Writing Makefile for APR
Writing Makefile for APR::Const
Writing Makefile for APR:erlIO
Writing Makefile for libaprext
Writing Makefile for APR_build


[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning]
[warning]   LoadModule perl_module modules/mod_perl.so
[warning]
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.

[warning] Check the results of
[warning]
[warning]   $ /usr/local/apache2/bin/apxs -q LIBEXECDIR
[warning]
[warning] and adjust the LoadModule directive accordingly.


在运行“make ”的时候,出现报以下的错误,麻烦大家看看,帮忙解决一下,谢谢!

bash-3.00# make test
                 cd "src/modules/perl" && make
                 /bin/perl -Iblib/arch -Iblib/lib \
                 t/TEST -clean
                 APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS= \
                 /bin/perl -Iblib/arch -Iblib/lib \
                 t/TEST -bugreport -verbose=0
                 [  error] Apache cannot spawn child processes as root, therefore the test suite must be run as a non-privileged user.
                 make -k run_subtests
                 make -C ModPerl-Registry test
                 Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
                 [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][ -t ]
                 [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ "macro +=value"... ]
                 make: Fatal error: Unknown option `-C'
                 *** Error code 1
                 make -C Apache-Reload test
                 Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
                 [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][ -t ]
                 [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ "macro +=value"... ]
                 make: Fatal error: Unknown option `-C'
                 *** Error code 1
                 make -C Apache-SizeLimit test
                 Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
                 [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][ -t ]
                 [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ "macro +=value"... ]
                 make: Fatal error: Unknown option `-C'
                 *** Error code 1
                 make: Warning: Target `run_subtests' not remade because of errors
                 Current working directory /bulk/source/mod_perl-2.0.5
                 *** Error code 1
                 make: Fatal error: Command failed for target `run_tests'

论坛徽章:
0
2 [报告]
发表于 2011-11-24 10:14 |只看该作者
麻烦大家进来看看,谢谢!

论坛徽章:
0
3 [报告]
发表于 2011-11-24 14:44 |只看该作者
我在Solaris查看了一下make 手册,发现没有“-C” 这个参数。而这个参数只有在Linux下才有。

mod_perl只能安装在Linux下,不会吧!

论坛徽章:
0
4 [报告]
发表于 2011-11-24 22:36 |只看该作者
有没有哥们弄过这个,有的话麻烦帮忙看看!

谢谢!

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2011-11-25 18:20 |只看该作者
找不到lib的话,可以使用crle加入你新的lib所在的路径。

论坛徽章:
0
6 [报告]
发表于 2011-11-28 10:19 |只看该作者
找不到lib的话,可以使用crle加入你新的lib所在的路径。
非凡公子 发表于 2011-11-25 18:20



   

我试了一下,还是报同样的错误。

请问,您是使用crle 来指定lib 路径的?

论坛徽章:
0
7 [报告]
发表于 2011-11-30 10:23 |只看该作者
有兄弟可以进来帮忙一下吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP