2017-06-01 4 views
0

installieren Ich habe unter Befehle ausführen nach dem Entpacken dieser Python 3.6 tar.xz Datei.nicht Python 3.6 auf Linux

./configure 
make 
make install 

Fehlerprotokoll:

ranlib libpython3.6m.a 
gcc -pthread -Xlinker -export-dynamic -o python Programs/python.o libpython3.6m.a -lpthread -ldl -lutil -lrt -lm 
if test "no-framework" = "no-framework" ; then \ 
     /usr/bin/install -c python /usr/local/bin/python3.6m; \ 
    else \ 
     /usr/bin/install -c -s Mac/pythonw /usr/local/bin/python3.6m; \ 
    fi 
/usr/bin/install: cannot create regular file `/usr/local/bin/python3.6m': Read-only file system 
make: *** [altbininstall] Error 1 

Wenn ich laufe configure nach Marke gefolgt, und dann habe ich in diesen Fehler make install laufen!

+0

'sudo –

+0

Ich bin bereits als Root-Benutzer ausführen machen install'! –

+0

@KlausD. [root @ Computername Python-3.6.1] # sudo make install wenn Test "no-framework" = "no-framework"; then \ \t \t/usr/bin/install -c python /usr/local/bin/python3.6m; \ \t else \ \t \t/usr/bin/installieren -c -s Mac/pythonw /usr/local/bin/python3.6m; \ fi fi /usr/bin/install: kann keine reguläre Datei erstellen '/usr/local/bin/python3.6m ': schreibgeschütztes Dateisystem make: *** [altbininstall] Fehler 1 –

Antwort

1

Haben Sie versucht, die obigen Befehle mit sudo Potenzen auszuführen?

ursprüngliche Antwort: https://askubuntu.com/q/865554/667903

sudo make install

oder

Wenn Sie mit Ubuntu 16.10 oder 17.04, dann Python 3.6 ist im Universum-Repository, so können Sie nur

laufen
sudo apt-get update 
sudo apt-get install python3.6 
+0

Ja, ich habe das getan. [root @ slc05kyt Python-3.6.1] # sudo make install wenn test "no-framework" = "no-framework"; then \ \t \t/usr/bin/install -c python /usr/local/bin/python3.6m; \ \t else \ \t \t/usr/bin/installieren -c -s Mac/pythonw /usr/local/bin/python3.6m; \ fi fi /usr/bin/install: kann keine reguläre Datei erstellen '/usr/local/bin/python3.6m ': Schreibgeschütztes Dateisystem make: *** [altbininstall] Fehler 1 –

+0

Die Maschine verwendet yum –

+0

Versuchen Sie, dies zu lesen: https://askubuntu.com/q/47538/667903 – TheDarkKnight

0

Versuchen Sie nach der Installation Build essentials, die compi enthält lers, package dev tools und libs: sudo apt-get install build-essential

+0

Meine Maschine verwendet yum! –

1

Ihr Dateisystem scheint schreibgeschützt zu sein. Sie haben die Partition zu mounten, wo /usr/local/bin/ mit Schreibrechten befindet

Die Syntax für mount ist

mount -o remount,rw /partition/identifier /mount/point 

Sagen wir, Sie / auf /dev/sda2

mount -o remount,rw//dev/sda2 

haben sollte Ihr Problem beheben.

Um die Mount-Punkte zu überprüfen: cat /etc/fstab oder df

die Berechtigungen überprüfen: cat /proc/mounts

+0

Danke, ich glaube, Sie haben das Problem erkannt, ich werde Ihre Lösung ausprobieren und Sie wissen lassen, wie es gelaufen ist. –