Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing portage on other distros, easier than ever
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 11, 12, 13  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Wed Feb 23, 2005 5:36 pm    Post subject: Re: Script problem Reply with quote

dlong500 wrote:
I have tried running the install script on a Redhat 9 VPS (Virtual private server) under Virtuozzo.

After the script performs an emerge sync I get the following error:
Quote:
Failed to write to mtimedb: 'module' object has no attribute 'HIGHEST_PROTOCOL'


Then after that it continues but repeats the following output many times:
Quote:

Performing Global Updates: /usr/portage/profiles/updates/3Q-2002
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
........................................................................................Traceback (most recent call last):
File "/usr/lib/portage/bin/emerge", line 2630, in ?
reload(portage)
File "/usr/lib/portage/pym/portage.py", line 7241, in ?
do_upgrade(mykey)
File "/usr/lib/portage/pym/portage.py", line 7179, in do_upgrade
myworld=open("/"+WORLD_FILE,"w")
IOError: [Errno 2] No such file or directory: '//var/lib/portage/world'
Failed to write to mtimedb: 'module' object has no attribute 'HIGHEST_PROTOCOL'
Failed to write to mtimedb: 'module' object has no attribute 'HIGHEST_PROTOCOL'
ln: when making multiple links, last argument must be a directory


Then it finally dies with the following message:
Quote:
Inject has failed. Please verify and continue with cut & paste of rest of the steps
ERROR.


Does anyone have any idea what I can do? :(

/var/lib/portage is now created by the script. again python at play. what is 'python -V' on your machine...get 2.3.4 version rpm from somewhere and try again.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Wed Feb 23, 2005 6:16 pm    Post subject: Re: Script problem Reply with quote

dlong500 wrote:

In searching around, I think that part of it may be my version of python, which is 2.2.2.
However, if I install a newer version of python, it is my understanding that it will install in a second copy of it in a different location instead of replacing the original, because overwriting the original version could break RH9 system scripts. If this is so, how do I get portage to work off the newer version??

install the new rpm, 2.3.4. Most of your old stuff would be under /usr/lib/python2.2/site-packages. Include this path in PYTHONPATH env. variable and set it system wide in /etc/profile.

export PYTHONPATH=/usr/lib/python2.3/site-packages:/usr/lib/python2.2/site-packages.

note that, the python in PATH should be the newer executable.

look under /usr/lib/python2.2/site-packages, and slowly re-install those things over time to the newer location. all RH9 system packages are updatable...:)
Back to top
View user's profile Send private message
dlong500
n00b
n00b


Joined: 11 Jun 2004
Posts: 17
Location: Midlothian, VA

PostPosted: Wed Feb 23, 2005 9:52 pm    Post subject: Reply with quote

devsk, I have tried to install the new python 2.3.4 rpm, but I'm having a problem.

I downloaded a source rpm for the new version of Python, and was able to build an rpm from it; however, when I try to install it I get the following:
Quote:
[root@davison i386]# rpm -ivh python2-2.3.4*.rpm
Preparing... ########################################### [100%]
file /usr/bin/python2 from install of python2-2.3.4-3pydotorg conflicts with file from package python-2.2.2-26


Am I supposed to install it a different way, or what? I'm not sure how to proceed, and I don't want to screw my system up since its a VPS a long way from me...
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Wed Feb 23, 2005 10:21 pm    Post subject: Reply with quote

cp /usr/bin/python2 /usr/bin/python2_2.2.2

and proceed with 'f' option to force the install. There should only be one conflict and that is the executable. I think rpm has found it correctly. Everything else is in separate directories. if you get into trouble, just rename the 2.3.4 with some prefix and restore /usr/bin/python2_2.2.2 to /usr/bin/python2 and you would be fine.
Back to top
View user's profile Send private message
dlong500
n00b
n00b


Joined: 11 Jun 2004
Posts: 17
Location: Midlothian, VA

PostPosted: Thu Feb 24, 2005 12:30 am    Post subject: Reply with quote

Thanks so much for your help devsk!

I think I've got it working now.

A few more question though... How would you recommend migrating the majority of the programs being managed by rpm to being managed by portage?
In other words, if I want to start updating apache, perl, php, etc.. using portage, how do I begin that process? Should I force an uninstall using rpm -e --nodeps? And if so, will portage install things in different locations that could create problems? Is there a safe way to know what files/directories to delete for a particular application before emerging the version maintained by portage? And is there a safe order to uninstalling programs managed by rpm that one is going to migrate to portage?

Have there been any problems trying to switch from rpm to portage for heavy footprint applications like apache and perl?

I want to dive into this but thought I'd ask if anyone has a recommended method to this madness 8)
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Thu Feb 24, 2005 7:27 am    Post subject: Reply with quote

first, apache and perl are not in the same category. I have emerged perl without any proble and updated my system after that. second, thing to note about portage on fedora/redhat is that the server scripts(/etc/init.d) need to be hand modified to work on redhat/fedora because there is no /sbin/runscript, which part of baselayout/sysvinit packages (although you could try hacking up a /sbin/runscript and its associated croonies like start-stop-daemon, I would say it has potential to break your system boot). so, you change the scripts installed by portage to use /bin/bash.

so stay away from server programs in general...that kinda sucks because thos are the programs which you wanna update the most for security reasons.

if you ever dare and succeed in cleanly creating a safe /sbin/runscript and family, which won't kill my fedora system, don't forget to update us here on that.
Back to top
View user's profile Send private message
dlong500
n00b
n00b


Joined: 11 Jun 2004
Posts: 17
Location: Midlothian, VA

PostPosted: Thu Feb 24, 2005 8:30 am    Post subject: Reply with quote

I'd really like to be able to manage apache through portage, so I'll look into what it will take to create a runscript family.
That would be cool.

Oh, I forgot to mention that (I think) there is a small typo in the current script in the first post of this thread.
In the line:
Code:

ln -s /usr/portage/profiles/default-linux/ x86/2004.2/gcc34 /etc/make.profile

There is a space before x86, and as soon as I removed it the script worked fine. (Otherwise it doesn't create the /etc/make.profile symlink)

Also, you mentioned that you now emerge gcc and binutils on your FC2 install. Will that work for me on a Redhat 9 VPS or is there a distinction there?

Once again, thanks so much for your help.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2968

PostPosted: Thu Feb 24, 2005 9:55 am    Post subject: Reply with quote

Update: Python no longer segfaults on my system after I un-installed the Cygwin version 2.4, and compiled 2.3.4 fresh from www.python.org instead. (But ./configure sure took a long time... :P)

But I have 2 more problems now:
  1. emerge --sync refuses to go to updating the cache for some reason. I have set
    Code:
    RSYNC_TIMEOUT=1800
    RSYNC_RETRIES=30
    but when I try to sync it ends up retrying and retrying with the following message (it has been doing this for 3 hours already):
    Code:
    Number of files: 111825
    Number of files transferred: 61
    Total file size: 87180631 bytes
    Total transferred file size: 19764 bytes
    Literal data: 19764 bytes
    Matched data: 0 bytes
    File list size: 2650351
    Total bytes sent: 1370
    Total bytes received: 2673590

    sent 1370 bytes  received 2673590 bytes  3312.64 bytes/sec
    total size is 87180631  speedup is 32.59
    rsync error: some files could not be transferred (code 23) at /home/lapo/packagi
    ng/tmp/rsync-2.6.3/main.c(1146)
    >>> retry ...

    I will try to compile rsync from source to see if this fixes the problem.

    EDIT: I gave up waiting for it to stop looping and now am trying emerge --metadata instead.

    EDIT 2: emerge --metadata completed successfully, but not without several ominous looking errors like this (for several packages):
    Code:
    Failed cache update: net-www/apache-2.0.52-r1 "Corruption detected when reading
    key 'apache-2.0.52-r1': Key count mismatch"

  2. emerge is refusing to read /etc/make.conf! This is a bit annoying as I have to pass it parameters on the command line. For example, it keeps on insisting to sync from rsync.gentoo.org when I have set
    Code:
    RSYNC="rsync://mirror.averse.net/gentoo-portage"

    Also, emerge --info shows that my CHOST, CFLAGS and CXXFLAGS are being ignored silently. :?


EDIT 3: I continued with the part of the script after emerge --sync and it starts dying again after injecting baselayout.
Code:
>>> Injected sys-apps/baselayout-1.9.4-r6.

portage: 'portage' user or group missing. Please update baselayout
         and merge portage user(250) and group(250) into your passwd
         and group files. Non-root compilation is disabled until then.
         Also note that non-root/wheel users will need to be added to
         the portage group to do portage commands.

         For the defaults, line 1 goes into passwd, and 2 into group.
         portage:x:250:250:portage:/var/tmp/portage:/bin/false
         portage::250:portage


*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.

[: ==: unknown operand

portage: 'portage' user or group missing. Please update baselayout
         and merge portage user(250) and group(250) into your passwd
         and group files. Non-root compilation is disabled until then.
         Also note that non-root/wheel users will need to be added to
         the portage group to do portage commands.

         For the defaults, line 1 goes into passwd, and 2 into group.
         portage:x:250:250:portage:/var/tmp/portage:/bin/false
         portage::250:portage


*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.

Calculating dependencies ...done!
Failed to open file for writedict(): //var/lib/portage/world
>>> emerge (1 of 1) sys-apps/portage-2.0.51-r15 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3045, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1830, in merge
    retval=portage.doebuild(y,"clean",myroot,self.pkgsettings,edebug,cleanup=1)
  File "/usr/lib/portage/pym/portage.py", line 2407, in doebuild
    os.chown(mysettings["BUILD_PREFIX"],portage_uid,portage_gid)
OSError: [Errno 22] Invalid argument: '/var/tmp/portage'
cd: can't cd to /etc/init.d

portage: 'portage' user or group missing. Please update baselayout
         and merge portage user(250) and group(250) into your passwd
         and group files. Non-root compilation is disabled until then.
         Also note that non-root/wheel users will need to be added to
         the portage group to do portage commands.

         For the defaults, line 1 goes into passwd, and 2 into group.
         portage:x:250:250:portage:/var/tmp/portage:/bin/false
         portage::250:portage


*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.

Calculating dependencies ...done!
Failed to open file for writedict(): //var/lib/portage/world
>>> emerge (1 of 1) sys-apps/gawk-3.1.3-r2 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3045, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1830, in merge
    retval=portage.doebuild(y,"clean",myroot,self.pkgsettings,edebug,cleanup=1)
  File "/usr/lib/portage/pym/portage.py", line 2407, in doebuild
    os.chown(mysettings["BUILD_PREFIX"],portage_uid,portage_gid)
OSError: [Errno 22] Invalid argument: '/var/tmp/portage'

portage: 'portage' user or group missing. Please update baselayout
         and merge portage user(250) and group(250) into your passwd
         and group files. Non-root compilation is disabled until then.
         Also note that non-root/wheel users will need to be added to
         the portage group to do portage commands.

         For the defaults, line 1 goes into passwd, and 2 into group.
         portage:x:250:250:portage:/var/tmp/portage:/bin/false
         portage::250:portage


*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.

Calculating dependencies ...done!
Failed to open file for writedict(): //var/lib/portage/world
>>> emerge (1 of 1) sys-apps/portage-2.0.51-r15 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3045, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1830, in merge
    retval=portage.doebuild(y,"clean",myroot,self.pkgsettings,edebug,cleanup=1)
  File "/usr/lib/portage/pym/portage.py", line 2407, in doebuild
    os.chown(mysettings["BUILD_PREFIX"],portage_uid,portage_gid)
OSError: [Errno 22] Invalid argument: '/var/tmp/portage'
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Thu Feb 24, 2005 4:21 pm    Post subject: Reply with quote

dlong500 wrote:
I'd really like to be able to manage apache through portage, so I'll look into what it will take to create a runscript family.

me too.
dlong500 wrote:

In the line:
Code:

ln -s /usr/portage/profiles/default-linux/ x86/2004.2/gcc34 /etc/make.profile

There is a space before x86, and as soon as I removed it the script worked fine. (Otherwise it doesn't create the /etc/make.profile symlink)

thanks.
dlong500 wrote:

Also, you mentioned that you now emerge gcc and binutils on your FC2 install. Will that work for me on a Redhat 9 VPS or is there a distinction there?

Once again, thanks so much for your help.

yes, why not. make sure if you emerge gcc-3.4.3, you also emerge libstdc++-v3. moreover there are gcc-config and binutils-config that you need to emerge before gcc/binutils, so that a proper profile is created during gcc/binutils install.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Thu Feb 24, 2005 4:45 pm    Post subject: Reply with quote

kimchi_sg wrote:

rsync error: some files could not be transferred (code 23) at /home/lapo/packagi
ng/tmp/rsync-2.6.3/main.c(1146)
>>> retry ...

I have seen this before. try lowering your rsync version.
Quote:

portage: 'portage' user or group missing. Please update baselayout
and merge portage user(250) and group(250) into your passwd
and group files. Non-root compilation is disabled until then.
Also note that non-root/wheel users will need to be added to
the portage group to do portage commands.

For the defaults, line 1 goes into passwd, and 2 into group.
portage:x:250:250:portage:/var/tmp/portage:/bin/false
portage::250:portage


you need to setup portage:portage somehow. nothing would work otherwise. make sure /var/lib/portage and /etc/init.d exist.

moreover, its
Code:
SYNC="rsync://mirror.averse.net/gentoo-portage"
and not RSYNC.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2968

PostPosted: Thu Feb 24, 2005 4:51 pm    Post subject: Reply with quote

devsk wrote:
you need to setup portage:portage somehow. nothing would work otherwise. make sure /var/lib/portage and /etc/init.d exist.

moreover, its
Code:
SYNC="rsync://mirror.averse.net/gentoo-portage"
and not RSYNC.

I have tried creating a portage user and group, but Windows 2000 does not allow a new group with the same name as an existing user, or vice versa. :-(

The "RSYNC" entry was mistyped in the post, I used SYNC="..." actually. My bad. :(
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Thu Feb 24, 2005 5:02 pm    Post subject: Reply with quote

doesn't cygwin provide an abstraction for users/groups?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2968

PostPosted: Thu Feb 24, 2005 5:05 pm    Post subject: Reply with quote

devsk wrote:
doesn't cygwin provide an abstraction for users/groups?

No, users and groups have to be created via Windows standard Administrative Tools.

(Source)
Back to top
View user's profile Send private message
dlong500
n00b
n00b


Joined: 11 Jun 2004
Posts: 17
Location: Midlothian, VA

PostPosted: Fri Feb 25, 2005 5:10 am    Post subject: Reply with quote

devsk wrote:
(although you could try hacking up a /sbin/runscript and its associated croonies like start-stop-daemon...


I want to do this, but I am by no means an expert at this kind of thing. I'm willing to put some work into it, but if you could provide some more details into the basics of what needs to go on, then I could use the direction to play around a bit with the idea. I'm willing to experiment (although I need to make sure I don't overly trash my VPS).

My first idea would be to put some kind of wrapper init script that won't change for each server program that I want portage to manage. That script would follow Redhat init guidlines and immediately call the gentoo-style init script. This way, portage can update the startup script without affecting Redhat's init system. Of course, this assumes that some form of runscript is in place and working. Does that sound like a starting point or did you have a much better concept in mind?

I'd prefer something that wouldn't even require manually creating the wrapper scripts, but I'm not sure how to integrate the Gentoo method of dependency checking with Redhat's method. By the way, what exactly is Redhat's method? It seems a little obscure compared to Gentoo's method.

I guess Apache and Mysql/Postgresql would really be the only server programs that I'd want to be managing through portage, and how often do init scripts change anyway? Maybe the first step would just be to get a Redhat style script working after the first emerge of Apache, and then just keep that script in place as upgrades occur. Does emerging a server program interfere with Redhat's init system in general or is the problem just with getting the portage installed daemon to start up properly?

Have I dished out enough questions?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2968

PostPosted: Fri Feb 25, 2005 6:32 am    Post subject: Reply with quote

devsk wrote:
kimchi_sg wrote:

rsync error: some files could not be transferred (code 23) at /home/lapo/packagi
ng/tmp/rsync-2.6.3/main.c(1146)
>>> retry ...

I have seen this before. try lowering your rsync version.

I have tried with compiled-from-source versions of rsync 2.6.3 to 2.6.0, and all of them have this error. :-(

rsync 2.5.7 does not work, it just hangs right before downloading the timeshamp.chk file.

Could the fact that my laptop has only 128MB of RAM be a factor? The rsync homepage does say that the program is fairly memory-intensive.

I feel like giving this up, but somehow, Portage on Windows is too fascinating an idea to be discarded like that. :D

P.S. I have googled for "portage cygwin" and found this page: http://www.toso-digitals.de/gentoo/install.html , which also describes portage on cygwin. Should I try the procedures on this one? After all, the worst thing that could happen is me nuking a cygwin install, but there is nothing that a re-run of Cygwin's setup.exe couldn't fix. :-)
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sat Feb 26, 2005 1:46 am    Post subject: Reply with quote

dlong500 wrote:

I want to do this, but I am by no means an expert at this kind of thing. I'm willing to put some work into it, but if you could provide some more details into the basics of what needs to go on, then I could use the direction to play around a bit with the idea. I'm willing to experiment (although I need to make sure I don't overly trash my VPS).

My first idea would be to put some kind of wrapper init script that won't change for each server program that I want portage to manage. That script would follow Redhat init guidlines and immediately call the gentoo-style init script. This way, portage can update the startup script without affecting Redhat's init system. Of course, this assumes that some form of runscript is in place and working. Does that sound like a starting point or did you have a much better concept in mind?

I'd prefer something that wouldn't even require manually creating the wrapper scripts, but I'm not sure how to integrate the Gentoo method of dependency checking with Redhat's method. By the way, what exactly is Redhat's method? It seems a little obscure compared to Gentoo's method.

I guess Apache and Mysql/Postgresql would really be the only server programs that I'd want to be managing through portage, and how often do init scripts change anyway? Maybe the first step would just be to get a Redhat style script working after the first emerge of Apache, and then just keep that script in place as upgrades occur. Does emerging a server program interfere with Redhat's init system in general or is the problem just with getting the portage installed daemon to start up properly?

Have I dished out enough questions?


Me too. but its complex and can break your system easily. Trust me, I had done this the first time and I had to restore from my backup iamges. I am currently looking at a possibility of just doing 'ebuild baselayout-1.9.11-r1 install' and then copying some needed programs manually. I will keep you posted if I get anywhere.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sat Feb 26, 2005 1:48 am    Post subject: Reply with quote

kimchi_sg wrote:
devsk wrote:
kimchi_sg wrote:

rsync error: some files could not be transferred (code 23) at /home/lapo/packagi
ng/tmp/rsync-2.6.3/main.c(1146)
>>> retry ...

I have seen this before. try lowering your rsync version.

I have tried with compiled-from-source versions of rsync 2.6.3 to 2.6.0, and all of them have this error. :-(

rsync 2.5.7 does not work, it just hangs right before downloading the timeshamp.chk file.

Could the fact that my laptop has only 128MB of RAM be a factor? The rsync homepage does say that the program is fairly memory-intensive.

I feel like giving this up, but somehow, Portage on Windows is too fascinating an idea to be discarded like that. :D

P.S. I have googled for "portage cygwin" and found this page: http://www.toso-digitals.de/gentoo/install.html , which also describes portage on cygwin. Should I try the procedures on this one? After all, the worst thing that could happen is me nuking a cygwin install, but there is nothing that a re-run of Cygwin's setup.exe couldn't fix. :-)

it essentially does the similar things. but, it might be more streamlined for cygwin. give it a shot.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2968

PostPosted: Sat Feb 26, 2005 3:10 am    Post subject: Reply with quote

devsk wrote:
kimchi_sg wrote:
I feel like giving this up, but somehow, Portage on Windows is too fascinating an idea to be discarded like that. :D

P.S. I have googled for "portage cygwin" and found this page: http://www.toso-digitals.de/gentoo/install.html , which also describes portage on cygwin. Should I try the procedures on this one? After all, the worst thing that could happen is me nuking a cygwin install, but there is nothing that a re-run of Cygwin's setup.exe couldn't fix. :-)

it essentially does the similar things. but, it might be more streamlined for cygwin. give it a shot.

Just spoke to dev bonsaikitten on #gentoo yesterday and it seems that this project has been inactive for more than 2 years now. :-(

I'm now trying to "emerge --sync" now, and rsync is merrily speeding along, but I haven't hit the "show stopper" part yet - the updating of the Portage database.

Some workarounds I used during the install of this "portage on win32", posting it here in case anyone is as hare-brained enough to try it as well :P :

  1. Do not install python 2.4 from the cygwin setup.exe as it is incompatible with the version of portage bundled in the zip file ( version 2.0.48 ). Instead, go to http://www.python.org/2.2.3 , and download python 2.2.3 from a local mirror site. Move the download file (Python-2.2.3.tgz) into your Cygwin home directory, then
    Code:
    tar zxvf Python-2.2.3.tgz
    Change to the Python-2.2.3 directory, read the README file, and then execute these commands to install Python 2.2.3:
    Code:
    ./configure && make && make install

  2. The default installation directory prefix for python 2.2.3 is /usr/local . I did not change this location, but if you wish to install it in a more accessible and standard location instead, pass the following option to the configure script:
    Code:
    ./configure --prefix=/usr

  3. With Wordpad or your favourite editor, edit [path/to/your/python/libraries]/site-packages/portage.py (the default python libraries directory is /usr/local/lib/python-2.2 ), and change all occurances of
    Code:
    uid==0
    to
    Code:
    uid==500

Will keep you guys posted as "emerge --sync" completes... :D

Update: Still hitting the rsync "Some files could not be transferred bug" with the cygwin rsync 2.6.3.

Update 2: ... and the same problem with rsync 2.6.0. Is it due to my RAM, or... ? :?

Update 3: After reading this post, my thinking is that since Cygwin's file access is very, very slow, Portage gets updated while I'm syncing and hence the error. If only I could hack the rsync source to stop it from aborting. :(
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Sat Feb 26, 2005 8:40 am    Post subject: Reply with quote

has anyone tried this out on suse 9.2? i was thinking about installing portage on suse 9.2 but dont know how to use the script. can someone please explain me step by step.
total dummy here.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sat Feb 26, 2005 4:46 pm    Post subject: Reply with quote

rush_ad wrote:
has anyone tried this out on suse 9.2? i was thinking about installing portage on suse 9.2 but dont know how to use the script. can someone please explain me step by step.
total dummy here.
cut and paste the script code from the post and put it in a file /tmp/install-portage.sh, then 'chmod +x /tmp/install-portage.sh'. login as root and run '/tmp/install-portage.sh'.
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Sat Feb 26, 2005 7:40 pm    Post subject: Reply with quote

do i need to download anything and put that in the same folder? or just the script is fine?
do i need to install the portage tarball before using the script
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sat Feb 26, 2005 10:26 pm    Post subject: Reply with quote

no.
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Sun Feb 27, 2005 12:25 pm    Post subject: Reply with quote

do you know if doing this would make suse not function in anyway? planning to try this out once i get home.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sun Feb 27, 2005 11:31 pm    Post subject: Reply with quote

rush_ad wrote:
do you know if doing this would make suse not function in anyway? planning to try this out once i get home.
depends on how far you push it and what you emerge. its good for getting all the latest patches and many custom kernels. not to forget user level packages like gnome/kde. Its not good for packages which run as daemons/services.

PS: by 'it' I mean portage on 'non-gentoo' system.
Back to top
View user's profile Send private message
dlong500
n00b
n00b


Joined: 11 Jun 2004
Posts: 17
Location: Midlothian, VA

PostPosted: Sat Mar 05, 2005 4:03 am    Post subject: Reply with quote

I think I'm well on my way to getting services like apache working on my Redhat 9 VPS when installed by portage.

I took your idea, devsk, of installing baselayout to the temp directory and then copying over certain files. I then modified the Redhat-style init script for apache to simply call the gentoo init script for the start, stop, and reload commands. Everything seems to be working both when calling the Gentoo-style script directly and through the Redhat-style script, so the next step I suppose is to try restarting the VPS (I'm a little scared). I'm hoping that everything the Gentoo-style script needs is available at the time the system runs the Redhat-style wrapper script.

If this works, then I guess it's on to Mysql!!

I'm sure I've done things that were unnecessary and/or have left uneeded junk lying around my system, but I'll post the steps I went through to get it all working. It actually wasn't as hard as I thought it would be (assuming my system boots back up properly). Long live portage!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 11, 12, 13  Next
Page 7 of 13

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum