2009年8月13日 星期四

Kubuntu 9.04 安裝 w32codecs

因w32codecs非free license,未含在預設套件中,由medibuntu安裝此套件。
原始網址:http://packages.medibuntu.org/
  • sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list
  • sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
  • sudo apt-get install w32codecs
安裝w32codecs時會出現缺少libstdc++5
由於Kubuntu 9.04已使用libstdc++6,libstdc++5已由source list中移除,無法使用apt-get install libstdc++5安裝。
使用以下步驟安裝libstdc++5
  • sudo aptitude update
  • sudo aptitude install -f
  • sudo aptitude install libstdc++5

2009年8月6日 星期四

Kubuntu/Ubuntu update blocked updates

  • sudo apt-get update
  • sudo apt-get dist-upgrade

2009年6月12日 星期五

CentOS 5.3 yum install php 5.2.9

1.安裝 remi rpm (感謝remi)
  • wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
  • http://rpms.famillecollet.com/enterprise/5/remi/x86_64/remi-release-5-7.el5.remi.noarch.rpm
  • rpm -ivh epel-release-5-3.noarch.rpm remi-release-5-7.el5.remi.noarch.rpm
2. 新增 remi repo
3. yum update & install...
  • yum --enablerepo=remi update (this will update php and mysql)
  • yum --enablerepo=remi install php-mbstring (for phpMyAdmin)

ps. 如果出現以下錯誤訊息
Transaction Check Error:
file /usr/share/info/mysql.info.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/my_print_defaults.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysql.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysql_config.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysql_find_rows.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysql_waitpid.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysqlaccess.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysqladmin.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysqldump.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysqlshow.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /etc/my.cnf from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/charsets/README from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386

執行 rpm -e
mysql-5.0.45-7.el5.i386 移除i386版mysql即可。

參考網址:
如何將 Centos 5.3 php 5.1.6 升級到 php 5.2.9