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 ... 5, 6, 7 ... 11, 12, 13  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
jamapii
Guru
Guru


Joined: 16 Sep 2004
Posts: 559

PostPosted: Thu Oct 07, 2004 6:04 pm    Post subject: Reply with quote

Another hint: I did 2 partial upgrades from Suse 7.3 to current Gentoo with this method. But I did not "emerge --inject" the versions that portage wanted, but rather the versions I had (as of "rpm -qa|grep ...").

This way, portage should know when it should upgrade, and when it needn't. If portage wants to upgrade, and you don't, use "--nodeps". And if it doesn't compile, you know your prerequisites are probably too old.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Thu Oct 07, 2004 8:48 pm    Post subject: Reply with quote

rescue tarball doesn't create certain files belonging to baselayout which the script in the post actually copies manually. So, anyone who is not using the script and having those depscan or 'ebegin not found' kind of errors, make sure you follow the script to see where those files from baselayout are copied and then copy them manually.
Back to top
View user's profile Send private message
duff
Guru
Guru


Joined: 19 Jun 2002
Posts: 466
Location: Clemson, SC

PostPosted: Fri Oct 08, 2004 4:37 pm    Post subject: Reply with quote

Awesome HOW-TO, and thanks, micolous, for the Debian tips. Just finished installing portage on a debian system so I could get packages not in the official debian repos (and I don't feel like looking all over the place for other reposes). Haven't added much so far, just win32codec, mplayer, and mplayerplug-in, so now I can watch trailers on apple's website. Thanks again!

[ gratuitous screenshot ]
Back to top
View user's profile Send private message
M2Ys4U
n00b
n00b


Joined: 26 Aug 2004
Posts: 4

PostPosted: Tue Oct 19, 2004 7:58 pm    Post subject: Reply with quote

trying to run it on Cygwin and I get
Quote:
Operating system "CYGWIN_NT-5.1" currently unsupported. Exiting.
... is there anything I can edit to make it ignore this fact? :roll:
Back to top
View user's profile Send private message
Landus Mikain
n00b
n00b


Joined: 24 Oct 2004
Posts: 20
Location: Somewhere

PostPosted: Fri Nov 26, 2004 11:56 pm    Post subject: Reply with quote

Wait till someone turns this into an RPM and puts it on the gnutella network...............
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Sat Nov 27, 2004 3:04 am    Post subject: Reply with quote

M2Ys4U wrote:
trying to run it on Cygwin and I get
Quote:
Operating system "CYGWIN_NT-5.1" currently unsupported. Exiting.
... is there anything I can edit to make it ignore this fact? :roll:

yes. grep for "Operating system" in portage_data.py and make changes till you are happy...:)
Back to top
View user's profile Send private message
M2Ys4U
n00b
n00b


Joined: 26 Aug 2004
Posts: 4

PostPosted: Sat Nov 27, 2004 10:58 pm    Post subject: Reply with quote

thanks
Back to top
View user's profile Send private message
M2Ys4U
n00b
n00b


Joined: 26 Aug 2004
Posts: 4

PostPosted: Sun Nov 28, 2004 1:20 am    Post subject: Reply with quote

this is going to need some hacking to get working in Cygwin... >_>

Unfortunatly, I'm not a programmer.

And the surrent portage-on-cygwin stuff ain't workin' for me :(
Back to top
View user's profile Send private message
mahir
l33t
l33t


Joined: 05 Dec 2003
Posts: 725
Location: London

PostPosted: Thu Feb 17, 2005 12:22 am    Post subject: Re: Installing portage on other distros, easier than ever Reply with quote

is it at all possible, to have an updated howto, considering portage has changed considerably and fc3 isnt as ugly as fc2 used to be..

thank much.



devsk wrote:
EDIT: 03-03-2004

Somebody posted the link for rescue tars in responses, just updating it here at the top:

http://dev.gentoo.org/~carpaski/portage_rescue/

/EDIT



EDIT: Jan 22
found a much easier way to install portage on a non-gentoo system.

get the rescue tarball for your arch from here:

ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/gentoo-x86-portage/sys-apps/portage/files/

read the README.RESCUE. Untar, emerge sync and emerge portage should get you on your way!!

/EDIT

ACTUAL POST BEGINS:

OK guys, after I figured that lot of people had problems regarding this, I thought a script is in order and hence a separate thread.

WARNING: I have verified each and every step in this script. I have everything in there from my own experience. Before you attempt to use it, make sure that you have a backup of the system(for weak hearted guys...:)). Have a look at the script and know what it does. Although, its not destructive in the sense that unless and until you emerge glibc straightaway, you are safe. Don't emerge glibc,gcc,binutils,baselayout. Alias emerge to something which asks for confirmation if its not "emerge -p <>". And if e.g. "emerge -p tar" tells you that its going to emerge binutils, make sure to inject binutils first. Make sure you have enough space in /(roughly at least 1GB). Just a friendly warning... :)

Here it goes:
---------------------------------------------------------------
Code:

#!/bin/bash
#
# call with one argument "again" or call it with no arguments at all
# call it with no arguments first time.
# call it again with "again" to bypass some operations.
#
                                                                               
if [ "$#" == "1" ];then
   again=$1
else
   again=""
fi
                                                                               
if [ "`id -u`" != "0" ]; then
   echo ""
   echo "Su as root and try again."
   echo ""
fi
                                                                               
pythonV=`python -V 2>&1`
if [ "$pythonV" \< "Python 2.2.0" ];then
   echo ""
   echo "Install python 2.2 and then try again"
   echo ""
   exit 1
fi
                                                                               
if [ "$again" == "" ];then
   mkdir -p /usr/lib/portage/bin
   mkdir -p /usr/lib/portage/pym
   mkdir -p /usr/portage/profiles
   mkdir /etc/env.d
                                                                               
   wget ftp://gentoo.mirrors.pair.com/distfiles/portage-2.0.50-r6.tar.bz2 -O /tmp/portage-2.0.50-r6.tar.bz2
   cd /tmp
   if [ ! -f portage-2.0.50-r6.tar.bz2 ];then
      echo ""
      echo "Mirror error. Try this script again after a while without any args".
      echo ""
      exit 1
   fi
   tar jxf portage-2.0.50-r6.tar.bz2
                                                                               
   cd portage-2.0.50-r6/bin
   cp * /usr/lib/portage/bin
   export PATH=/usr/lib/portage/bin:$PATH
   cd ../pym ; cp * /usr/lib/portage/pym/
   cd ../man ;cp *.1 /usr/man/man1 ;cp *.5 /usr/man/man5
   cd ../src/python-missingos
   ./setup.py install
   cd ../sandbox-1.1
   make && make install
   cd ../../cnf; cp * /etc
                                                                               
   if [ "`id portage`" == "" ]; then
      groupadd -g 250 portage
      useradd -d /var/tmp/portage -g portage -u 250 portage
   fi
                                                                               
   cd /usr/sbin
   ln -s ../lib/portage/bin/regenworld .
   ln -s ../lib/portage/bin/pkgmerge .
   ln -s ../lib/portage/bin/fixpackages .
   ln -s ../lib/portage/bin/etc-update .
   ln -s ../lib/portage/bin/env-update .
   ln -s ../lib/portage/bin/emerge-webrsync .
   ln -s ../lib/portage/bin/ebuild.sh .
   ln -s ../lib/portage/bin/ebuild .
   ln -s ../lib/portage/bin/dispatch-conf .
   ln -s ../lib/portage/bin/archive-conf .
                                                                               
   cd /usr/bin
   ln -s ../lib/portage/bin/xpak .
   ln -s ../lib/portage/bin/repoman .
   ln -s ../lib/portage/bin/quickpkg .
   ln -s ../lib/portage/bin/portageq .
   ln -s ../lib/portage/bin/g-cpan.pl .
   ln -s ../lib/portage/bin/emerge .
fi
                   
export PATH=/usr/lib/portage/bin:$PATH                                                         
echo "CC=gcc;CXX=g++" > /etc/env.d/compilers.sh
echo "LDPATH=\"/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/usr/kerberos/lib\"" > /etc/env.d/10ldpath
. /etc/env.d/compilers.sh
emerge sync
#
# emerge sync should get /usr/portage/profiles
#
if [ -d /usr/portage/profiles/default-x86-1.4 ];then
   ln -s /usr/portage/profiles/default-x86-1.4 /etc/make.profile
else
   echo ""
   echo "Something wrong. Get /usr/portage/profiles dir from a working"
   echo "Gentoo system and try again."
   echo ""
   exit 1
fi
                                                                               
# inject the "dangerous" packages first.
glibcP=`emerge -p -O glibc|grep ebuild|cut -d" " -f8`
emerge inject $glibcP
gccP=`emerge -p -O gcc|grep ebuild|cut -d" " -f8`
emerge inject $gccP
binP=`emerge -p -O binutils|grep ebuild|cut -d" " -f8`
emerge inject $binP
                                                                               
# fetch the baselayout.
emerge -f -O baselayout
                                                                               
# now inject it too.
baseP=`emerge -p -O baselayout|grep ebuild|cut -d" " -f8`
emerge inject $baseP

#was inject success
ret=`emerge -p baselayout|grep "ebuild   R"`

if [ "$ret" == "" ] ;then
  echo "Inject has failed. Please verify and continue with cut & paste of rest of the steps"
  echo "ERROR."
  exit 1
fi
                                                                               
# if it fails with some errors, its fine.
emerge -O portage
                                                                               
cd /tmp
cp /usr/portage/distfiles/rc-scripts*.tar.bz2 .
tar xjpf rc-scripts*.tar.bz2
cd rc-scripts*/sbin
cp depscan.sh /sbin; cp functions.sh /sbin
mkdir -p /lib/rcscripts/awk
cd ../src/awk
cp *.awk /lib/rcscripts/awk/
cd /etc/init.d
ln -s /sbin/depscan.sh .
ln -s /sbin/functions.sh .
                                                                               
emerge -O gawk

# FOLLOWING SHOULD NOT GIVE ANY ERRORS HERE. You screwed up if it did.
emerge -O portage
                                                                               
if ! fgrep -q "/etc/profile.env" /etc/profile ; then
  echo ". /etc/profile.env" >> /etc/profile
fi
                                                                               
echo ""
echo "#############################################################"
echo "You are now free to enjoy portage. Make sure you tune"
echo "/etc/make.conf and other portage configuration files to take"
echo "advantage of portage. If you screwed up, its OK. Pick yourself"
echo "up and give it another go."
echo "#############################################################"
echo ""

-----------------------------------------------------------------------------

This script is now officially tested by me and others.

Thanks.

PS:
I use the following script to prune out all packages I have marked unsafe for portage on Fedora.
-------------------------------------------------
Code:

#!/bin/bash
emerge sync
emerge -p -uD world > /tmp/world.update
for i in `cat /etc/portage/package.mask.ORG` ;
do
matching=`grep "$i" /tmp/world.update`
if [ -n "$matching" ]; then
toInject=`echo $matching|cut -d " " -f 4`;
echo "Injecting $toInject"
'emerge' inject $toInject
fi
done
echo "# #"
echo "################# UPDATES #######################"
echo "# #"
cat /tmp/world.update

-------------------------------------------

Currently, my /etc/portage/package.mask.ORG looks like this:
--------------
Code:

sys-apps/baselayout
sys-fs/devfsd
sys-kernel/linux-headers
sys-libs/pwdb
sys-libs/pam
sys-libs/pam-login
gnome-base/gdm
sys-apps/kbd
sys-devel/bin86
sys-devel/binutils
net-misc/iputils
sys-apps/shadow
net-misc/dhcpcd
sys-apps/modutils
sys-libs/glibc
sys-devel/gcc
sys-libs/ncurses
sys-apps/cronbase
x11-base/opengl-update
net-mail/mailbase
net-www/epiphany
net-nds/portmap
net-fs/samba
dev-lang/python
sys-fs/e2fsprogs

-------------------

No specific reason for anything other than baselayout, glibc, gcc, binutils, I usually update these fabfour with up2date once in a while. These four you should never emerge on redhat/fedora. Remember, services are handled by different mechanisms in gentoo and other distros, so anything which has to do with services you can't really emerge because you didn't emerge baselayout and hence don't have rc-update script. you could hack around them though.

perfect for keeping xfree, gnome, multimedia kind of stuff up2date.

Good luck.

EDIT: How can I forget to thanks Crichards for floating this idea here? Thanks crichards!! please refer this thread as well:

https://forums.gentoo.org/viewtopic.php?t=28559

_________________
"wa ma tawfiqi illah billah"
Mahir Sayar
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Thu Feb 17, 2005 8:40 am    Post subject: Re: Installing portage on other distros, easier than ever Reply with quote

mahir wrote:
is it at all possible, to have an updated howto, considering portage has changed considerably and fc3 isnt as ugly as fc2 used to be..

thank much.


yes its possible...:)

soon...
Back to top
View user's profile Send private message
mahir
l33t
l33t


Joined: 05 Dec 2003
Posts: 725
Location: London

PostPosted: Fri Feb 18, 2005 4:39 pm    Post subject: haha Reply with quote

hahaha
okay
u got me
lol

can we do that? the upgrade? infact let me rephrase

may you update? or may anyone update the howto?
_________________
"wa ma tawfiqi illah billah"
Mahir Sayar
Back to top
View user's profile Send private message
Nicholas.Walker
n00b
n00b


Joined: 31 Dec 2004
Posts: 16
Location: Canada

PostPosted: Sun Feb 20, 2005 7:22 am    Post subject: Reply with quote

So in order to have emerege not emerge the fab four packages I have to type emerge inject <package> right?

or is there something else I need to do?
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Sun Feb 20, 2005 8:31 am    Post subject: Reply with quote

essentially that...new portage (2.0.51) has a package.provided file where you are supposed put the package name with verson number...its useful because most of the time the dependency is like ">=<pkg>-version", so you can put "sys-apps/abc-100" to keep it satisfied forever(well, almost).

moreover, emerging 'empty' will honour the files listed in package.provided.
Back to top
View user's profile Send private message
Nicholas.Walker
n00b
n00b


Joined: 31 Dec 2004
Posts: 16
Location: Canada

PostPosted: Mon Feb 21, 2005 6:15 am    Post subject: Reply with quote

uhhh you lost me.
(newbie)
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Tue Feb 22, 2005 6:08 am    Post subject: Reply with quote

Nicholas.Walker wrote:
uhhh you lost me.
(newbie)

its ok to get lost...as long as you look it up and find your way...just inject, its still supported.

I am onto updating the first page..
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Tue Feb 22, 2005 12:59 pm    Post subject: Reply with quote

devsk wrote:
I am onto updating the first page..

Hopefully you can revamp the script to use package.provided, instead of the inject kludge. Then I will give it a shot on Cygwin. :)
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Tue Feb 22, 2005 5:16 pm    Post subject: Reply with quote

won't make a difference(not for cygwin, not for any other OS). inject will be supported for some time. apart from putting package names in a file and 'empty' honouring the 'injects' there is no difference.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Tue Feb 22, 2005 7:25 pm    Post subject: massive b0rkage when running on cygwin in win2k Reply with quote

My attempt at running the script on Cygwin for Win2k failed when emerge sync died thusly:
Code:

Administrator@SLABTOP ~
$ /gentooize.sh

Su as root and try again.

/usr/bin/env: python2.2: No such file or directory
gcc   -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c
cc1: warning: -fPIC ignored for target (all code is position independent)
libsandbox.c: In function `init_wrappers':
libsandbox.c:219: error: `RTLD_NEXT' undeclared (first use in this function)
libsandbox.c:219: error: (Each undeclared identifier is reported only once
libsandbox.c:219: error: for each function it appears in.)
libsandbox.c: In function `get_dlsym':
libsandbox.c:349: error: `RTLD_NEXT' undeclared (first use in this function)
libsandbox.c: In function `init_env_entries':
libsandbox.c:958: warning: implicit declaration of function `strndupa'
libsandbox.c:958: warning: assignment makes pointer from integer without a cast
In file included from libsandbox.c:1380:
getcwd.c:97:23: sys/dir.h: No such file or directory
getcwd.c:224:1: warning: "__lstat" redefined
getcwd.c:207:1: warning: this is the location of the previous definition
In file included from libsandbox.c:1380:
getcwd.c: In function `__egetcwd':
getcwd.c:346: error: `__ptr_t' undeclared (first use in this function)
getcwd.c:346: error: parse error before "dotlist"
getcwd.c:382: warning: assignment from incompatible pointer type
getcwd.c:383: error: dereferencing pointer to incomplete type
getcwd.c:384: error: dereferencing pointer to incomplete type
getcwd.c:385: error: dereferencing pointer to incomplete type
getcwd.c:385: error: dereferencing pointer to incomplete type
getcwd.c:387: error: dereferencing pointer to incomplete type
getcwd.c:388: warning: implicit declaration of function `_D_ALLOC_NAMLEN'
getcwd.c:397: error: dereferencing pointer to incomplete type
getcwd.c:419: warning: implicit declaration of function `_D_EXACT_NAMLEN'
getcwd.c:441: error: void value not ignored as it ought to be
getcwd.c:448: error: dereferencing pointer to incomplete type
getcwd.c:461: error: parse error before "dotlist"
getcwd.c:472: error: parse error before "dotlist"
In file included from libsandbox.c:1381:
canonicalize.c: In function `erealpath':
canonicalize.c:153: warning: implicit declaration of function `__mempcpy'
canonicalize.c:153: warning: assignment makes pointer from integer without a cas
t
canonicalize.c:163: error: void value not ignored as it ought to be
make: *** [libsandbox.o] Error 1
id: portage: No such user
/gentooize.sh: line 51: groupadd: command not found
/gentooize.sh: line 52: useradd: command not found
portage initialization: your system doesn't have a 'wheel' group.
Please fix this as it is a normal system requirement. 'wheel' is GID 10
'emerge baselayout' and an 'etc-update' should remedy this problem.

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



!!! /etc/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)


emerge: root access required.
>>> starting rsync with rsync://134.68.220.74/gentoo-portage...
>>> checking server timestamp ...
C:\cygwin\bin\python2.4.exe (144): *** unable to remap C:\cygwin\bin\cygssl-0.9.
7.dll to same address as parent(0xC50000) != 0xC60000
C:\cygwin\bin\python2.4.exe (144): *** unable to remap C:\cygwin\bin\cygssl-0.9.
7.dll to same address as parent(0xC50000) != 0xC60000
    746 [main] python2.4 1584 sync_with_child: child 144(0x1CC) died before init
ialization with status code 0x1
  11122 [main] python2.4 1584 sync_with_child: *** child state child loading dll
s
Traceback (most recent call last):
  File "/usr/lib/portage/bin/emerge", line 2449, in ?
    exitcode=portage.spawn(mycommand,portage.settings,free=1)
  File "/usr/lib/portage/pym/portage.py", line 1568, in spawn
    return portage_exec.spawn_bash(mystring,env=env,**keywords)
  File "/usr/lib/portage/pym/portage_exec.py", line 46, in spawn_bash
    return spawn(args,env=env,opt_name=opt_name,**keywords)
  File "/usr/lib/portage/pym/portage_exec.py", line 97, in spawn
    mypid.append(os.fork())
OSError: [Errno 11] Resource temporarily unavailable

Something wrong. Get /usr/portage/profiles dir from a working
Gentoo system and try again.


Administrator@SLABTOP ~
$

:-(

Any thing i must edit in /usr/bin/emerge for this to work?

Also, I wonder if the errors before emerge sync bombed caused it to misbehave.

But then again I'm thrilled that this can be even thought of. :D
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Tue Feb 22, 2005 8:42 pm    Post subject: Reply with quote

you need to run it as 'root' user, whatever that means on cygwin.

the script made the mistake of not exitting on finding this....now corrected. sandbox doesn't compile on solaris either, so it has to be left out of the script...
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Tue Feb 22, 2005 11:55 pm    Post subject: Reply with quote

devsk wrote:
you need to run it as 'root' user, whatever that means on cygwin.

the script made the mistake of not exitting on finding this....now corrected. sandbox doesn't compile on solaris either, so it has to be left out of the script...

It seems sandbox does not compile here also. :-(

Also, since the script (and emerge itself) checks if I'm running as root by checking if I'm running as UID 0, there's no way I can run emerge in Cygwin, unless I can change it to check for UID 18 somehow.
Cygwin ML post wrote:

Now, as far as root is concerned, Unix programs think of "root" as uid 0.
The Cygwin versions of those programs are usually patched to consider uid 18 to be root (this corresponds to the LocalSystem account, which has very high privileges on NT systems, unlike the Administrator account).

_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Wed Feb 23, 2005 2:43 am    Post subject: Reply with quote

I hacked portage_data.py so that it would check for UID 500 (NT Administrator account) instead of UID 0, and emerge sync still dies.
Code:
>>> starting rsync with rsync://134.68.220.73/gentoo-portage...
>>> checking server timestamp ...
C:\cygwin\bin\python2.4.exe (1856): *** unable to remap C:\cygwin\bin\cygssl-0.9
.7.dll to same address as parent(0xC50000) != 0xC60000
C:\cygwin\bin\python2.4.exe (1856): *** unable to remap C:\cygwin\bin\cygssl-0.9
.7.dll to same address as parent(0xC50000) != 0xC60000
    909 [main] python2.4 1724 sync_with_child: child 1856(0x1C8) died before ini
tialization with status code 0x1
   9682 [main] python2.4 1724 sync_with_child: *** child state child loading dll
s
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2449, in ?
    exitcode=portage.spawn(mycommand,portage.settings,free=1)
  File "/usr/lib/portage/pym/portage.py", line 1568, in spawn
    return portage_exec.spawn_bash(mystring,env=env,**keywords)
  File "/usr/lib/portage/pym/portage_exec.py", line 46, in spawn_bash
    return spawn(args,env=env,opt_name=opt_name,**keywords)
  File "/usr/lib/portage/pym/portage_exec.py", line 97, in spawn
    mypid.append(os.fork())
OSError: [Errno 11] Resource temporarily unavailable

_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Wed Feb 23, 2005 5:59 am    Post subject: Reply with quote

that's python refusing to spawn /bin/bash. does /bin/bash exist?

your python has problem loading SSL dll's as well. have you tested python on cygwin for fork() and stuff?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Wed Feb 23, 2005 6:27 am    Post subject: Reply with quote

devsk wrote:
that's python refusing to spawn /bin/bash. does /bin/bash exist?

Bash is present:
Code:
$ which bash
/usr/bin/bash

$ ls -l /bin/bash
-rwxrwxrwx  1 Administrator Users 527360 Oct 20  2003 /bin/bash

(on Cygwin, /usr/bin and /bin are mapped to the same physical directory.)
devsk wrote:
your python has problem loading SSL dll's as well. have you tested python on cygwin for fork() and stuff?

I don't have prior experience with python, how can I test this?
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
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 7:42 am    Post subject: Script problem Reply with quote

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? :(

[Edit]
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??


Last edited by dlong500 on Wed Feb 23, 2005 5:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Wed Feb 23, 2005 5:33 pm    Post subject: Reply with quote

kimchi_sg wrote:
devsk wrote:
that's python refusing to spawn /bin/bash. does /bin/bash exist?

Bash is present:
Code:
$ which bash
/usr/bin/bash

$ ls -l /bin/bash
-rwxrwxrwx  1 Administrator Users 527360 Oct 20  2003 /bin/bash

(on Cygwin, /usr/bin and /bin are mapped to the same physical directory.)
devsk wrote:
your python has problem loading SSL dll's as well. have you tested python on cygwin for fork() and stuff?

I don't have prior experience with python, how can I test this?

try lowering the python version. stable 2.3.4 maybe. I mean, even Gentoo hasn't moved to 2.4, you are on cygwin...:))
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 ... 5, 6, 7 ... 11, 12, 13  Next
Page 6 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