Upgrade problem - cannot use yum

Support/Development for PHP
ernest
Forum User
Forum User
Posts: 6
Joined: Mon Oct 22, 2007 2:51 pm

Upgrade problem - cannot use yum

Unread post by ernest »

hi,

i am having troblue with using yum. your help will be greatly appreciated.

Server Configuration:
VPS with swsoft virtuozzo (with SSH access)
CPU: GenuineIntel, Intel(R) Xeon(TM) CPU 2.80GHz
Version: psa v8.2.1_build82070918.10 os_RedHat el4
OS: Linux 2.6.9-023stab044.4-smp
httpd: 2.0.52-25.ent
PHP: 4.3.9-3.18
MySQL: 4.1.20-1.RHEL4.1

I am bascially trying to install the following modules for my script and hence upgrade my PHP. (The following modules required by the script:
bcmath, date, hash, iconv, pcre, session, libxml, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, mbstring, curl, exif, gd, image, mcrypt, mysql, openssl.)

But after installing yum using automatic configuration, it says this:
"There was a problem importing one of the Python modules reqired to run yum. The rror leading to this problem was:
No module named rpm ......"

can someone please help me out.
PS: the server does not have up2date (i do not know why)

Ernest
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

how are you installing yum? Through the atomic installer?
ernest
Forum User
Forum User
Posts: 6
Joined: Mon Oct 22, 2007 2:51 pm

Unread post by ernest »

hi

I installed it first time by automatic installer (i am a newbie). and i un-install yum and all dependencies it automatically installed.

and then I reinstalled libxml2-python-2.6.16-10.x86_64.rpm, python-elementtree-1.2.6-7.el4.rf.x86_64.rpm,
python-sqlite-2.3.3-1.el4.rf.x86_64.rpm
python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm

rpm-python is also required,
so i tried to install rpm-python-4.3.3-8_42.el4.at.x86_64,
but i says i need rpm >= 4.3.3,
so i tried to install rpm-4.3.3-8_42.el4.at.x86_64.rpm,
but it again says i need librpm4.3,
so i tried to install librpm4.3-4.3.3-8_42.el4.at.x86_64.rpm,
but it says
1. "file /usr/lib64/librpm-4.3.so from install of librpm4.3-4.3.3-8_42.el4.at conflicts with file from package rpm-libs-4.3.3-18_nonptl"
2. "file /usr/lib64/librpmbuild-4.3.so from install of librpm4.3-4.3.3-8_42.el4.at conflicts with file from package rpm-libs-4.3.3-18_nonptl"
3. ""file /usr/lib64/librpmdb-4.3.so from install of librpm4.3-4.3.3-8_42.el4.at conflicts with file from package rpm-libs-4.3.3-18_nonptl"
4. "file /usr/lib64/librpmio-4.3.so from install of librpm4.3-4.3.3-8_42.el4.at conflicts with file from package rpm-libs-4.3.3-18_nonptl"

I have no idea how to solve this. please help
thank you

Ernest
ernest
Forum User
Forum User
Posts: 6
Joined: Mon Oct 22, 2007 2:51 pm

Unread post by ernest »

hi

For Plesk 8.2 there is a new update for "operating Systems" where source types repond(xml-rpm-metadata repository) and local directory can be choosen. can it be used for the updates on this site?
ernest
Forum User
Forum User
Posts: 6
Joined: Mon Oct 22, 2007 2:51 pm

Unread post by ernest »

i managed to install yum, its been a dependency hell problem (I think it might be becaus of VPS and plesk)

anyway, when i tried to update PHP using, it gives the missing dependency php-common error. and yes, i have searched the forum and tried their methods, with no luck.

but when i tried to update ALL, the php-common missing dependency disappears, BUT not comes many mysql errors:

Code: Select all

file /etc/my.cnf from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/bin/mysql_tableinfo from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/info/mysql.info.gz from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/man/man1/mysql.1.gz from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/man/man1/mysqlaccess.1.gz from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/man/man1/mysqladmin.1.gz from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/man/man1/mysqldump.1.gz from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/man/man1/mysqlshow.1.gz from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/charsets/Index.xml from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/english/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/french/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/german/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-5.0.27-1.el4.art conflicts with file from package mysql-4.1.20-1.RHEL4.1
seems like i need to remove php4 and mysql4 first. Is that correct?
any help? please?
ernest
Forum User
Forum User
Posts: 6
Joined: Mon Oct 22, 2007 2:51 pm

Unread post by ernest »

ok,

after running

Code: Select all

# rpm -qi mysql
i can see there are currently 2 versions of mysql4.1.20 installed.
so i tired to use

Code: Select all

# yum remove mysql
and it displays there is a i386 and x86_64 version of it install (of course i would not remove it now, as there are many psa dependencies will also be removed by yum)

so i guess (if i am right), i should remove i386 version only and then update using yum?
but how do i do that? and does the i386 version have something to do with Plesk or VPS?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

You can do something like yum remove mysql.i386.
Lemonbit Internet Dedicated Server Management
ernest
Forum User
Forum User
Posts: 6
Joined: Mon Oct 22, 2007 2:51 pm

Unread post by ernest »

hi,

i just tired to remove both versions of mysql with --nodeps and reinstalling mysql, it works perfect now.

PHP and mysql are now uptodate!

thanks very much for the packages
Post Reply