richliu's blog

Linux, 工作, 生活.

richliu's blog header image 2

Gentoo PHP4 Support

十二月 6th, 2009 · No Comments

Gentoo 下的 PHP4 Support 要改用其他的 source tree, 目前 php4 早就從 portage 移除了

不過如果是安裝 php4.4.9 會碰到一些問題, 在 patch 『php4-iodbc-config.patch』 時會失敗

這時就需要移除 Patch 壓縮檔內的 php4-iodbc-config.patch』

Step1 : 加入 php-4 的 Tree

# layman -a php-4

Step2: 設定要修改的檔案

# EB="/usr/local/portage/layman/php-4/dev-lang/php/php-4.4.9.ebuild"

Step3: 抓下要用的檔案

# ebuild ${EB} setup

Step4: 移除 php4-iodbc-config.patch, 並且 copy 回去

# tar -xvjf /usr/portage/distfiles/php-patchset-4.4.9-r0.tar.bz2
# rm 4.4.9/php4/php4-iodbc-config.patch
# tar -cvjf /usr/portage/distfiles/php-patchset-4.4.9-r0.tar.bz2 4.4.9/*
# cp /usr/portage/distfiles/php-patchset-4.4.9-r0.tar.bz2 /usr/local/portage/layman/php-4/dev-lang/php/files/

Step6: 重新產生 digest 檔

# FEATURES+="assume-digest" ebuild --force ${EB} digest

Step7: 再 merge 一次.

# ebuild ${EB} merge

老機器不死, 只是需要維護…..

Ref.

gentoo 2008.0 und php-4 (emerge failed)[德文網站]


On this day..

Tags: , ,

Related posts

Tags: Gentoo

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment