Hi all,

It's solved the problem,

there was an error on my yum.conf file which had this line on it "exclude=glib*" and so that I wasn't able to install with you any gcc package. After removing this package everything went ok.

Thanks a lot for your help,

David
David Mezquíriz Osés wrote:
Hi Kirill,

No problem, my VE was based on centos 4.5

If I do a
# vzpkgls
centos-4-i386-minimal
centos-4-i386-default

It was using the second one.

I think someone else put this line into yum.conf by error, I'm not the only person who manipulates this VE, and we have been using VIRTUOZZO for a couple of years or so and we had to put this line into yum.conf in order to get yum application to run. So I think thats what happened, by similarity someone put this line into it. After the conversation with you I removee this line from yum.conf and I was able to do a "yum install gcc" and the VE seems to run ok.


Regards,
David

Kirill Korotaev escribió:

you are welcome!
so what was VE based on? just out of curiosity...

Thanks,
Kirill


David Mezquíriz Osés wrote:
Hi Kirill,

Ups...sorry, so I might do a mistake with this template, I'm going to create again this VPS with templates from download.openvz.org and let you know if everything goes ok..


Thanks for your help.
David

Kirill Korotaev escribió:

What VE template do you use? where did you take it?
I've checked centos-4 precached teamplates from download.openvz.org
and they have no such issue. They have no yum installed in VE at all :@)

Thanks,
Kirill

David Mezquíriz Osés wrote:


Hi Kirill,

Thanks for your answered,

yes, of course I tried to do a "yum install gcc" on my VPS without any success because this is the restriction I mentioned,

if I do a "cat" command look at the last line, I didn't add it, so I assumed it was a openvz restriction, because I know for sure that Virtuozzo put this restriction into yum.conf so that I supposed Openvz did the same, and my doubt is the following, may I remove "exclude=glib*
>from yum.conf file?:
####################################################
# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
plugins=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
exclude=glib*
########################################################


Regards,
David




Kirill Korotaev escribió:

David Mezquíriz Osés wrote:


Hi all,

I'm getting started with openvz so I'm a bit lost with it, so I hope you can help me.

This is the situation:
I create an VE with centos 4.4.
The hardware node has this kernel "2.6.18-8.1.8.el5.028stab039.1" and it's a centos 4.5 server.


The problem is the following:

I created successfully the VE but unfortunatelly I tried to compile a tar.gz file that I need but I don't have any gcc compiler inside the VE. I found out that inside the yum configuration file there is a restriction on it, glib is excluded from any installation so I don't want to remove it from it.
what restriction do you mean?
all you need is to do:
# yum install gcc



I know that there is a devel-ce4 package built by Swsoft which can be installed into a VE based on Virtuozzo in order to allow gcc compiler into this VE, but I don't find any package similar to this for openvz.
devel package just include binutils/gcc and some other devel rpms.
the installation is still done via yum (in case of EZ templates).



I would like to ask you if some of you either has been able to compile inside a VE or has been able to build a template like that.
after you have installed gcc inside VE, you can create a template
cache from this VE. template cache can be used later to create new
VEs already with preinstalled packages you want (in your case -devel).

Thanks,
Kirill





_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users

Reply via email to