• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

ocaml installation mit tar -xjvf

je®ome

Newbie
Hi,

ich bin anfänger, habe den post für anfänger über die installation im shell mit tar-xjvf durchgelesen und bin den schritten gefolgt.

./configure, da läuft alles prima. konfiguration erfolgreich abgeschlossen.

dann
Code:
jerome@linux:~/ocaml-3.08.4> make
Please refer to the installation instructions in file INSTALL.
If you've just unpacked the distribution, something like
        ./configure
        make world
        make opt
        make install
should work.  But see the file INSTALL for more details.

und schliesslich

Code:
jerome@linux:~/ocaml-3.08.4> make install
if test -d /usr/local/bin; then : ; else mkdir -p /usr/local/bin; fi
if test -d /usr/local/lib/ocaml; then : ; else mkdir -p /usr/local/lib/ocaml; fi
mkdir: cannot create directory `/usr/local/lib/ocaml': Permission denied
make: *** [install] Error 1
jerome@linux:~/ocaml-3.08.4> cd ..
jerome@linux:~> chmod 777 ocaml-3.08.4/
jerome@linux:~> cd ocaml-3.08.4/
jerome@linux:~/ocaml-3.08.4> make install
if test -d /usr/local/bin; then : ; else mkdir -p /usr/local/bin; fi
if test -d /usr/local/lib/ocaml; then : ; else mkdir -p /usr/local/lib/ocaml; fi
mkdir: cannot create directory `/usr/local/lib/ocaml': Permission denied
make: *** [install] Error 1

da dachte ich mir ok probier ich mal im root shell

./configure wieder ganz ok

bei make genau das gleiche

und dann

Code:
linux:/home/jerome/ocaml-3.08.4 # make install
if test -d /usr/local/bin; then : ; else mkdir -p /usr/local/bin; fi
if test -d /usr/local/lib/ocaml; then : ; else mkdir -p /usr/local/lib/ocaml; fi
if test -d /usr/local/lib/ocaml/stublibs; then : ; else mkdir -p /usr/local/lib/ocaml/stublibs; fi
if test -d /usr/local/man/man1; then : ; else mkdir -p /usr/local/man/man1; fi
cd /usr/local/lib/ocaml; rm -f dllbigarray.so dlllabltk.so dllnums.so \
          dllthreads.so dllunix.so dllgraphics.so dllmldbm.so dllstr.so \
          dlltkanim.so
cd byterun; make install
make[1]: Entering directory `/home/jerome/ocaml-3.08.4/byterun'
cp ocamlrun /usr/local/bin/ocamlrun
cp: cannot stat `ocamlrun': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/jerome/ocaml-3.08.4/byterun'
make: *** [install] Error 2

dann habe ich in der /usr/local/bin eine "ocamlrun" datei erstellt

Code:
linux:/usr/local/bin # ls -l
total 0
drwxr-xr-x   3 root root 144 Oct 25 00:56 .
drwxr-xr-x  10 root root 240 Oct 12 01:24 ..
lrwxrwxrwx   1 root root  18 Oct 12 01:44 cc -> ../../bin/colorgcc
lrwxrwxrwx   1 root root  18 Oct 12 01:44 g++ -> ../../bin/colorgcc
lrwxrwxrwx   1 root root  18 Oct 12 01:44 gcc -> ../../bin/colorgcc
drwxr-xr-x   2 root root  48 Oct 25 00:56 ocamlrun
und dann wieder
Code:
linux:/home/jerome/ocaml-3.08.4 # make install
if test -d /usr/local/bin; then : ; else mkdir -p /usr/local/bin; fi
if test -d /usr/local/lib/ocaml; then : ; else mkdir -p /usr/local/lib/ocaml; fi
if test -d /usr/local/lib/ocaml/stublibs; then : ; else mkdir -p /usr/local/lib/                        ocaml/stublibs; fi
if test -d /usr/local/man/man1; then : ; else mkdir -p /usr/local/man/man1; fi
cd /usr/local/lib/ocaml; rm -f dllbigarray.so dlllabltk.so dllnums.so \
          dllthreads.so dllunix.so dllgraphics.so dllmldbm.so dllstr.so \
          dlltkanim.so
cd byterun; make install
make[1]: Entering directory `/home/jerome/ocaml-3.08.4/byterun'
cp ocamlrun /usr/local/bin/ocamlrun
cp: cannot stat `ocamlrun': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/jerome/ocaml-3.08.4/byterun'
make: *** [install] Error 2


bin auf KDE Suse 10.0
könnte villeicht jemand mir helfen ??

danke im voraus[/code]
 
1. Das ist ein Bug in den Makefiles des Pakets.
2. Die Datei "ocamlrun" fehlt nicht in "/usr/local/bin", dahin soll sie nämlich am Ende kopiert werden, sondern dort, woher sie kopiert werden soll und das ist nicht "/usr/local/bin", sondern "/home/jerome/ocaml-3.08.4/byterun".
3. Du hast die ganze Arbeit umsonst gemacht, weil ocaml bei SuSE dabei ist. Bitte in Zukunft erst nachschauen und die Pakete nachinstallieren, anstatt sie selbst zu kompilieren.
 
OP
J

je®ome

Newbie
das vertseh ich nicht, denn ich kann ihn aber nicht starten.
wie kann ich den denn starten.
wenn ich ocaml in der konsole ingebe bekomme ich ocaml not found aus antwort

ich habe in der software datei von yast nachgekuckkt, ich sehe da kein ocaml
wenn ich nach einer ocaml datei suchen bekomme ich keine resultate.
wo sollte ich den program haben ??

danke für du hilfe
 

rolle

Guru
Gib mal als root in der Konsole 'yast2 -i ocaml' ein. Damit wird das Paket installiert. Dabei muß natürlich Deine Installationsquelle im Rechner verfügbar sein.
 
OP
J

je®ome

Newbie
wenn ich "yast2 -i ocaml" diesen befehl als root eingebe
bekomme ich eine fehlermeldung "can't find on medium: ocaml"

was soll ich machen ??
 
OP
J

je®ome

Newbie
ich habe suse 10.0 mit KDE

geben es da verschiedene linux versionen ??

wenn ja wo finde ich welche version ich habe ??

sorry doch bin eben totaler anfänger

danke für die hilfe
 
OP
J

je®ome

Newbie
hab ich versucht, dann bekomme ich

unabe to creat2 installation source from ftp://ftp.uni-erlangen.de/mirrors/opensuse/distribution/SL-10.0-OSS/inst-source/

mit den details:

error(installationsource: E_no installation source on media)

try again ?

Ich habe es paar mal versucht doch, es gelingt mir nicht.
Mach ich was falsch??
 

TeXpert

Guru
schau mal hier im YAST-Forum nach, da sollte stehen, wie man externe (bzw. zusätzliche) Quellen einrichtet.
 
OP
J

je®ome

Newbie
super danke an alle,

die hilfe für die quelle ist ganz ok, dann klappst auch.
yast2 -i ocaml hat auch prima funktionniert.
ocaml läuft.

nochmal vielen vielen dank
 
Oben