Pb compilation...

Fermé
manu - 19 sept. 2006 à 22:50
m1a2n3u4 Messages postés 4 Date d'inscription mardi 19 septembre 2006 Statut Membre Dernière intervention 20 septembre 2006 - 20 sept. 2006 à 18:25
bonjour a tous les linuxiens !!!!

je suis tout nouveau dans le monde du logiciel libre, j'ai choisi mandriva comme distribution....

voilà mon probleme : j'essaye de compiler un programme ( à savoir un antivirus) et j'ai telechargé gcc....mais ca marche pas.

Malgré la tonne de documentation que j'ai lu, je n'ai pas trouvé ce qu'il me faut !

si quelqu'un pouvait m'aider, ca serait bien sympa !!!!!!!

4 réponses

mamiemando Messages postés 33078 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 22 avril 2024 7 749
20 sept. 2006 à 00:58
Donne nous le message d'erreur. Il te manque probablement un paquet mentionné dans ce qu'il te dit.

Bonne chance
0
m1a2n3u4 Messages postés 4 Date d'inscription mardi 19 septembre 2006 Statut Membre Dernière intervention 20 septembre 2006
20 sept. 2006 à 10:57
en console, jai vu sur un forum que pour compiler, il fallait aller ds la console, et aller ds le dossier dezipé puis tapez ./configure puis make et enfin make install.

cependant, des que je tape ./configure, la console affiche le messéage suivant :

bash: ./configure: No such file or directory
0
m1a2n3u4 Messages postés 4 Date d'inscription mardi 19 septembre 2006 Statut Membre Dernière intervention 20 septembre 2006
20 sept. 2006 à 11:56
en fait, laisser tomber pour le message au dessus, g reussi !!!!!( cool )

par contre, impossible de le retrouver ?!!!

Dois je le desinstaller pour le reinstaller a nouveau ?????
0
lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567
20 sept. 2006 à 13:54
Salut,

par contre, impossible de le retrouver ?!!!

tu parles de quoi? de ton antivirus

whereis antivirus

lami20j
0
m1a2n3u4 Messages postés 4 Date d'inscription mardi 19 septembre 2006 Statut Membre Dernière intervention 20 septembre 2006
20 sept. 2006 à 16:20
oui...
mais si je me trompe pas, il doit etre ds mon gestionnaire de logiciels non ?
0
lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567 > m1a2n3u4 Messages postés 4 Date d'inscription mardi 19 septembre 2006 Statut Membre Dernière intervention 20 septembre 2006
20 sept. 2006 à 16:33
Non, si tu l'as compilé toi même.

lami20j
0
m1a2n3u4 Messages postés 4 Date d'inscription mardi 19 septembre 2006 Statut Membre Dernière intervention 20 septembre 2006 > lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019
20 sept. 2006 à 18:25
a priori, le probleme est que jarrive pas a le lancer....Pour cela, il faut que j'installe dazuko et quand je vais dans la doc fournie, il est dit :


Dazuko is a kernel module. Once a kernel module is loaded, it becomes one with your kernel. Therefore, Dazuko will call and share the same set of functions as the kernel. This is why the kernel source code is required in order to build Dazuko.

It is highly recommended that you first build and install a kernel. Then it is certain that the kernel source code you use to build Dazuko matches the running kernel. If you do not know how to do this, read the opening paragraph above.

Many distributions provide packages with the kernel source code. If you do not plan on building a new kernel, make sure you install the proper kernel source packages for your distribution.


Step 2: Compile Dazuko
Once the source code for your running kernel is available, you can build Dazuko. First a Makefile must be generated by running:

./configure

This will determine what kind of system you have and any special flags that need to be set. Then you can compile Dazuko with:

make

This will create the device driver as well as a couple example programs. Under Linux 2.2-2.4 the device driver is named dazuko.o. Under Linux 2.6 and FreeBSD it is named dazuko.ko.

If you get any warnings or errors from either of the steps above, something may not be correct. Please read over the FAQ if you encounter problems.


Step 3: Insert Dazuko
Once you have successfully compiled Dazuko, the final step is to insert the module into the kernel. To do this, you must have root priveledges. This can be done with the command:

Linux 2.2-2.4: /sbin/insmod dazuko.o
Linux 2.6: /sbin/insmod dazuko.ko
FreeBSD: /sbin/kldload dazuko.ko

If you don't get any messages, this is a good sign. To check if the module has been loaded type:

Linux 2.2-2.6: cat /proc/modules
FreeBSD: /sbin/kldstat

If you see "dazuko" listed then the Dazuko driver has been successfully loaded. Unless you are using devfs, the device node must now be created. With devfs, device nodes are created automatically.

Under Linux
The device major number for Dazuko must be found. This is done with:

cat /proc/devices

You should see "dazuko" listed along with its device major number (usually 254). For example purposes, I will assume this number is 254. The commands to create the device node are:

mknod -m 600 /dev/dazuko c 254 0
chown root:root /dev/dazuko

Under FreeBSD 4
mknod /dev/dazuko c 33 0



Step 4: Test Dazuko
So you've got Dazuko compiled and inserted into your kernel. Now what?

Once Dazuko is loaded, an application is able to handle file access control through the Dazuko device. To test Dazuko it is recommended that you try out the example program included (in the example_c subdirectory). You can build the example program with:

cd example_c
make

For security reasons Dazuko will only operate with processes that are running as root. Therefore you need to be root when you run the example program. The example program takes a list of paths to "watch" as arguments.

./example /home /usr/home

Once the example program is running, open up another terminal or shell. Open up some file within the /home directory (or any subdirectory thereof). As the files are accessed, the example program should output various information.

The example program always permits the accesses, however another application could be written that denies file accesses in certain conditions. This allows a 3rd party to write complex file access control schemes (or customized file access logging utilities).


?????????? je ne comprend rien !!!!!!!!!!!!!!!!
Donc ma question est la suivante :

comment charger le noyau ?
Quelqu'un comprend il quelque chose ?

>Merci pour votre aide.....
0