Pages : 1
#1 Le 30/05/2013, à 11:39
- Carla19
Installation de SoClib
Bonjour,
J'ai un problème dans l'installation de SoClib sous Ubuntu 12.04 LTS , en tapant les commandes "make" et "sudo make install" j'aurais ces 2 messages :
user3@ubuntu:~/Soclib/Soclib/utils/src$ make
make -C fb_screen install
make[1]: Entering directory `/home/user3/Soclib/Soclib/utils/src/fb_screen'
cc `sdl-config --cflags` -Wall -O2 -c -o fb.o fb.c
cc -o soclib-fb fb.o `sdl-config --libs`
cp soclib-fb /home/user3/Soclib/Soclib/utils/bin
make[1]: Leaving directory `/home/user3/Soclib/Soclib/utils/src/fb_screen'
make -C pipe2fb install
make[1]: Entering directory `/home/user3/Soclib/Soclib/utils/src/pipe2fb'
cc -c -o pipe2fb.o pipe2fb.c
cc -c -o fb_controller.o fb_controller.c
cc -o soclib-pipe2fb pipe2fb.o fb_controller.o
cp soclib-pipe2fb /home/user3/Soclib/Soclib/utils/bin
make[1]: Leaving directory `/home/user3/Soclib/Soclib/utils/src/pipe2fb'
user3@ubuntu:~/Soclib/Soclib/utils/src$ sudo make install
make -C fb_screen install
make: soclib-cc: Command not found
make[1]: Entering directory `/home/user3/Soclib/Soclib/utils/src/fb_screen'
cp soclib-fb /utils/bin
cp: cannot create regular file `/utils/bin': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/user3/Soclib/Soclib/utils/src/fb_screen'
make: *** [fb_screen/install] Error 2
J'arrive pas à résoudre ce problème !!!
Hors ligne
#2 Le 30/05/2013, à 11:51
- inbox
Re : Installation de SoClib
Un problème résolu ? Indiquez le en modifiant le titre du sujet.
Hors ligne
#3 Le 30/05/2013, à 11:55
- Carla19
Re : Installation de SoClib
Salut,
S'il vous plait , est ce que vous connaissez comment je peux vérifier que la compilation croisée 'Cross Compiler' est bien installée sous Ubuntu 12.04 LTS ??
Merci.
Hors ligne
#4 Le 30/05/2013, à 11:57
- inbox
Re : Installation de SoClib
Je n'en sais rien, mais il semble qu'il y ai une documentation à ce sujet ici.
Un problème résolu ? Indiquez le en modifiant le titre du sujet.
Hors ligne
#5 Le 30/05/2013, à 13:01
- claudius01
Re : Installation de SoClib
Bonjour,
Peut-être rien à voir mais l'erreur suite à la commande 'sudo make install' :
cp soclib-fb /utils/bin
cp: cannot create regular file `/utils/bin': No such file or directory
fais penser à un PATH mal initialisé dans l'environnement root alors qu'il semble l'être correctement lorsque la commande 'make' est lancée dans l'environnement user.
Comme indiqué dans la note d'installation de SocLib indiquée par inbox, je pense que le PATH doit aussi être initialisé dans l'environnement root.
$ export PATH=$PATH:where/to/put/soclib/utils/bin
Cordialement, A+
--
Claudius
Dernière modification par claudius01 (Le 30/05/2013, à 13:01)
Hors ligne
#6 Le 30/05/2013, à 13:10
- Carla19
Re : Installation de SoClib
Merci,
Oui, j'ai déjà tapé ça :
$ cd /home/user/Soclib
$ svn co https://www.soclib.fr/svn/trunk/soclib Soclib
$ export PATH=$PATH:/home/user/Soclib/Soclib/utils/bin
$ cd /home/user/Soclib/Soclib/utils/src
$ make
$ sudo make install
Comment je peux initialisé le PATH dans l'environnement root ?
Hors ligne
#7 Le 30/05/2013, à 13:46
- claudius01
Re : Installation de SoClib
Comment je peux initialisé le PATH dans l'environnement root ?
En encapsulant la commande 'make install' dans un script <my_script> qui fait cet export PATH avant le make et lancer ce script par :
$ sudo <my_script>
Dernière modification par claudius01 (Le 30/05/2013, à 14:09)
Hors ligne
#8 Le 30/05/2013, à 16:00
- Carla19
Re : Installation de SoClib
user3@ubuntu:~/Soclib/soclib/utils/src$ make
make -C fb_screen install
make[1]: Entering directory `/home/user3/Soclib/soclib/utils/src/fb_screen'
cc `sdl-config --cflags` -Wall -O2 -c -o fb.o fb.c
cc -o soclib-fb fb.o `sdl-config --libs`
cp soclib-fb /home/user3/Soclib/soclib/utils/bin
make[1]: Leaving directory `/home/user3/Soclib/soclib/utils/src/fb_screen'
make -C pipe2fb install
make[1]: Entering directory `/home/user3/Soclib/soclib/utils/src/pipe2fb'
cc -c -o pipe2fb.o pipe2fb.c
cc -c -o fb_controller.o fb_controller.c
cc -o soclib-pipe2fb pipe2fb.o fb_controller.o
cp soclib-pipe2fb /home/user3/Soclib/soclib/utils/bin
make[1]: Leaving directory `/home/user3/Soclib/soclib/utils/src/pipe2fb'
user3@ubuntu:~/Soclib/soclib/utils/src$ sudo make install
[sudo] password for user3:
make -C fb_screen install
make: soclib-cc: Command not found
make[1]: Entering directory `/home/user3/Soclib/soclib/utils/src/fb_screen'
cp soclib-fb /utils/bin
cp: cannot create regular file `/utils/bin': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/user3/Soclib/soclib/utils/src/fb_screen'
make: *** [fb_screen/install] Error 2
Hors ligne
#9 Le 30/05/2013, à 16:38
- claudius01
Re : Installation de SoClib
Argh c'est la même chose qu'au post #1 ?!.
Sauf erreur de ma part, je ne vois pas l'appel au script qui encapsule le 'make install'
$ cat ./my_script
export PATH=$PATH:/home/user/Soclib/Soclib/utils/bin
make install
# Quel est le résultat de la commande suivante ?
$ sudo ./my_script
A suivre...
Dernière modification par claudius01 (Le 30/05/2013, à 16:40)
Hors ligne
Pages : 1