Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disinstallato python
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
nilo888
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2005
Posts: 84

PostPosted: Sat Dec 01, 2007 7:32 pm    Post subject: Disinstallato python Reply with quote

Ho commesso un terribile errore: ho disinstallato python... emerge non funziona piu'....
mo' cosa posso fare?
Code:

emerge -av python
-/bin/bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory



Grazie
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4656
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sat Dec 01, 2007 7:51 pm    Post subject: Re: Disinstallato python Reply with quote

nilo888 wrote:

mo' cosa posso fare?

se hai la fortuna di avere compilato con la FEATURES="buildpkg" in /etc/make.conf dovresti trovare una versione di python in /usr/portage/packages/All (file python-tua-versione).

per esempio:
Code:

s939 ~ # tar -tjf ${PKGDIR}"/All/python-2.4.4-r5.tbz2"|head -n 15
./
./usr/
./usr/share/
./usr/share/man/
./usr/share/man/man1/
./usr/share/man/man1/python2.4.1.bz2
./usr/include/
./usr/include/python2.4/
./usr/include/python2.4/pyconfig.h
./usr/include/python2.4/weakrefobject.h
./usr/include/python2.4/unicodeobject.h
./usr/include/python2.4/ucnhash.h
./usr/include/python2.4/tupleobject.h
./usr/include/python2.4/traceback.h
./usr/include/python2.4/token.h

sistema i file al posto giusto con il comando:
Code:

s939 ~ # tar -xjf ${PKGDIR}"/All/python-2.4.4-r5.tbz2" -C /

se non avevi la FEATURES giusta, scarica una versione di python 2.4.* dai mirror qualunque e prova a fare lo stesso.

con le dita in croce dietro la schiena.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Dottout
l33t
l33t


Joined: 07 Mar 2006
Posts: 882

PostPosted: Sat Dec 01, 2007 7:53 pm    Post subject: Reply with quote

scaricalo ad es da ftp://ftp.unina.it/pub/linux/distributions/gentoo/distfiles/Python-2.5.1.tar.bz2 e lancia il configure (e.g ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-fpectl --enable-shared --infodir=${prefix}/share/info --mandir=${prefix}/share/man --with-libc= --enable-unicode=ucs4 --with-threads --build=i686-pc-linux-gnu <-- ti ho riportato i prefix standard del portage per non sporcarti inutilmente il sistema) poi make e make install. ah, consiglio caldamente di sceglier la stessa versione che avevi già installato prima del fattaccio

edit: ops, non son stato abbastanza veloce ;)
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sat Dec 01, 2007 11:34 pm    Post subject: Reply with quote

Non ho assolutamente idea se funzioni, ma q e' in C, qmerge usa binpkgs.... perche' non provare
Code:
qmerge python
? ;)
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Sun Dec 02, 2007 2:33 am    Post subject: Reply with quote

lavish wrote:
Non ho assolutamente idea se funzioni, ma q e' in C, qmerge usa binpkgs.... perche' non provare
Code:
qmerge python
? ;)


qmerge mi ha salvato le chiappe 2 volte... benedetto sia chi lo ha inventato :lol:
_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
nilo888
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2005
Posts: 84

PostPosted: Sun Dec 02, 2007 2:02 pm    Post subject: Reply with quote

Grazie a tutti ho risolto,
sarebbe stato interessante provare qmerge ma non lo avevo installato.

Grazie di nuovo!
Nilo
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Sun Dec 02, 2007 2:27 pm    Post subject: Reply with quote

Quote:
#equery belongs qmerge
[ Searching for file(s) qmerge in *... ]
app-portage/portage-utils-0.1.28 (/usr/bin/qmerge -> q)


quindi dovresti averlo già installato:
Quote:
#cat /var/lib/portage/world |grep portage-utils
#

_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
nilo888
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2005
Posts: 84

PostPosted: Sun Dec 02, 2007 5:10 pm    Post subject: Reply with quote

bandreabis wrote:

Searching for file(s) qmerge in *... ]
app-portage/portage-utils-0.1.28 (/usr/bin/qmerge -> q)


quindi dovresti averlo già installato:
/quote]

Non capisco perche' dovrei cmq no

Code:

emerge -s portage-utils
Searching...
[ Results for search key : portage-utils ]
[ Applications found : 1 ]

*  app-portage/portage-utils
      Latest version available: 0.1.28
      Latest version installed: [ Not Installed ]
      Size of files: 77 kB
      Homepage:      http://www.gentoo.org/
      Description:   small and fast portage helper tools written in C
      License:       GPL-2
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Dec 02, 2007 5:50 pm    Post subject: Reply with quote

@Dottout: mi sa che hai sbagliato thread :P
@nilo888: non ho capito nemmeno io perche' dovresti averlo ( :P ), comunque non e' in system, quindi a meno che tu non l'abbia emerso o che qualche programma non l'abbia installato come sua dipendenza non ce lo avresti avuto appunto ;)
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
Dottout
l33t
l33t


Joined: 07 Mar 2006
Posts: 882

PostPosted: Sun Dec 02, 2007 6:25 pm    Post subject: Reply with quote

ops scusate, che pirla ho invertito due risposte in thread diversi! se qualche mod lo cancellasse avrei una vergogna in meno sulle spalle :D
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Dec 02, 2007 6:41 pm    Post subject: Reply with quote

Dottout wrote:
ops scusate, che pirla ho invertito due risposte in thread diversi! se qualche mod lo cancellasse avrei una vergogna in meno sulle spalle :D

detto fatto ;)
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Sun Dec 02, 2007 7:15 pm    Post subject: Reply with quote

nilo888 wrote:
nilo888 wrote:
bandreabis wrote:

Searching for file(s) qmerge in *... ]
app-portage/portage-utils-0.1.28 (/usr/bin/qmerge -> q)


quindi dovresti averlo già installato:


Non capisco perche' dovrei cmq no

Code:

emerge -s portage-utils
Searching...
[ Results for search key : portage-utils ]
[ Applications found : 1 ]

*  app-portage/portage-utils
      Latest version available: 0.1.28
      Latest version installed: [ Not Installed ]
      Size of files: 77 kB
      Homepage:      http://www.gentoo.org/
      Description:   small and fast portage helper tools written in C
      License:       GPL-2


Ho creduto di sì perchè non ricordo di aver emerso portage-utils e infatti non è presente in world, e quindi credevo fosse dipendenza di qualche programma di base.... evidentemente ne ho detta un'altra..... :lol:
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
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