亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 6290 | 回復: 10
打印 上一主題 下一主題

安裝mod_perl時, make報錯. [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2012-08-17 09:39 |只看該作者 |倒序瀏覽
各位大神!
    小弟最近在學習mod_perl,安裝make的時候總是出現下面這個錯誤,網上找資料也很少,頭疼了好幾天了。請大家?guī)臀曳治鱿律缑丛蚰兀?

make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/usr/src/mod_perl-2.0.7/src/modules/perl'
make: *** [modperl_lib] Error 2



<note>  
os:                     rhel5_u7
perl:                  This is perl 5, version 16, subversion 1 (v5.16.1) built for x86_64-linux-thread-multi
apr:                   apr-1.4.6.tar ,
apr-util:             apr-util-1.4.1
apr-iconv:          apr-iconv-1.2.1
apache-http:      httpd-2.2.22
mod_perl:          mod_perl-2.0.7

論壇徽章:
7
巳蛇
日期:2014-04-10 08:54:57白羊座
日期:2014-04-22 20:06:262015年亞洲杯之沙特阿拉伯
日期:2015-02-10 14:18:532015年辭舊歲徽章
日期:2015-03-03 16:54:152015亞冠之吉達阿赫利
日期:2015-06-02 11:34:112015亞冠之武里南聯
日期:2015-06-24 12:13:082015亞冠之阿爾納斯爾
日期:2015-08-03 09:08:25
2 [報告]
發(fā)表于 2012-08-17 09:43 |只看該作者
你沒給出錯原因,下面這個只表示出錯了,出錯原因在下面三行之前。
illidanee 發(fā)表于 2012-08-17 09:39
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/usr/src/mod_perl-2.0.7/src/modules/perl'
make: *** [modperl_lib] Error 2

論壇徽章:
0
3 [報告]
發(fā)表于 2012-08-17 10:45 |只看該作者
本帖最后由 illidanee 于 2012-08-17 10:46 編輯
Monox 發(fā)表于 2012-08-17 09:43
你沒給出錯原因,下面這個只表示出錯了,出錯原因在下面三行之前。




這個是截圖

論壇徽章:
0
4 [報告]
發(fā)表于 2012-08-17 11:12 |只看該作者
連接錯誤的~~ 查看下你下的位數對著沒?

論壇徽章:
0
5 [報告]
發(fā)表于 2012-08-17 11:27 |只看該作者
xiyoulaoyuanjia 發(fā)表于 2012-08-17 11:12
連接錯誤的~~ 查看下你下的位數對著沒?


能不能具體的說一下哪個地方位數不對呢?我OS是X86_64的。好像mod_perl 沒有分位數啊 。

論壇徽章:
2
CU大;照
日期:2013-04-17 11:46:28CU大;照
日期:2013-04-17 11:46:39
6 [報告]
發(fā)表于 2012-08-17 11:28 |只看該作者
貌似加上 -fPIC 重新編譯 libperl.a

論壇徽章:
7
巳蛇
日期:2014-04-10 08:54:57白羊座
日期:2014-04-22 20:06:262015年亞洲杯之沙特阿拉伯
日期:2015-02-10 14:18:532015年辭舊歲徽章
日期:2015-03-03 16:54:152015亞冠之吉達阿赫利
日期:2015-06-02 11:34:112015亞冠之武里南聯
日期:2015-06-24 12:13:082015亞冠之阿爾納斯爾
日期:2015-08-03 09:08:25
7 [報告]
發(fā)表于 2012-08-17 11:31 |只看該作者
回復 3# illidanee


    貌似你得重新編譯 Perl,Configure 的時候加上 -Duseshrplib 選項,用來生成 libperl 的動態(tài)鏈接庫。

論壇徽章:
0
8 [報告]
發(fā)表于 2012-08-17 11:31 |只看該作者
64 bit Linux
If while running make test while building mod_perl 2 you get an error like this:

  /usr/bin/ld: /usr/local/lib/perl5/5.10.1/x86_64-linux/CORE/libperl.a(op.o): \
  relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a shared \
                  object; recompile with -fPIC
  /usr/local/lib/perl5/5.10.1/x86_64-linux/CORE/libperl.a: could not read symbols: Bad \
                  value
You're likely on 64 bit Linux and will need to build Perl for that platform. You can do so by running Perl's Configure with the $CFLAGS environment variable and the -A and ccflags options. So if you normally build Perl with:

  % ./Configure -des
You would instead configure with:

  % CFLAGS='-m64 -mtune=nocona' ./Configure -des -A ccflags=-fPIC

論壇徽章:
0
9 [報告]
發(fā)表于 2012-08-17 11:32 |只看該作者
其它 詳細可以看  安裝文檔~~  http://perl.apache.org/docs/2.0/user/install/install.html  

論壇徽章:
0
10 [報告]
發(fā)表于 2012-08-17 13:49 |只看該作者
xiyoulaoyuanjia 發(fā)表于 2012-08-17 11:32
其它 詳細可以看  安裝文檔~~  http://perl.apache.org/docs/2.0/user/install/install.html




多謝,找到解決方法了。第一次看的時候沒有看太仔細。沒注意這個地方,F在問題解決了。

重新編譯perl

CFLAGS='-m64 -mtune=nocona'
./Configure -des -A ccflags=-fPIC
make
make instal

然后重新安裝mod_perl。正常。

下面是官方的資料說明。希望對遇到和我一樣問題的朋友有幫助。

您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯網協(xié)會會員  聯系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP