Comando Make non trovato
Comando Make non trovato
ho necessità di installare dei driver attraverso terminale, fra le istruzioni mi chiede di digitare "make", però mi dice che il comando non è stato trovato, come posso fare a risolvere il problema
- flashcream
- Posts: 38388
- Joined: Fri Apr 22, 2005 8:41 pm
probabilmente è make install.... e si fa da root
quindi
make
sudo make install
anche preceduto da ./configure o da cd
se dai qualche indicazione in più si controlla
per esempio:
tar zxvf nomefile.tar.gz
cd nomefile
sudo ./configure
sudo make
sudo make install
cosi si decomprime il file, si entra nella sua cartella, si configura e si installa
quindi
make
sudo make install
anche preceduto da ./configure o da cd
se dai qualche indicazione in più si controlla
per esempio:
tar zxvf nomefile.tar.gz
cd nomefile
sudo ./configure
sudo make
sudo make install
cosi si decomprime il file, si entra nella sua cartella, si configura e si installa
- flashcream
- Posts: 38388
- Joined: Fri Apr 22, 2005 8:41 pm
ecco quello che devo fare
first step is to download the firmware at http://ipw2200.sourceforge.net/firmware.php (i used version 2.4) and copy the ipw-*.fw files into iwi2000/firmware/. In that directory you will find a file called hex2string. hex2string will generate a C-String headers out of the firmware files: All you need to do is:
$> cd iwi2200/firmware
$iwi2200/firmware> ./hex2string ipw-2.4-boot.fw iwi_boot > iwi_boot.fw.h
$iwi2200/firmware> ./hex2string ipw-2.4-bss.fw iwi_bss > iwi_bss.fw.h
$iwi2200/firmware> ./hex2string ipw-2.4-bss_ucode.fw iwi_ucode_bss > iwi_ucode_bss.fw.h
(If you use a different version from 2.4 just replace the 2.4 with the version you downloaded.)
once you've created the required headers return back to the root of the iwi2200 directory with
$iwi2200/firmware> cd ..
now its time to compile the actual driver by using the Makefile:
$iwi22000> make
If this was successful then you got lucky!! To load the driver type:
$iwi2200> ./load
and you should read something like this:
kextunload: unload kext ./build/Default/iwi2200.kext failed
kextload: ./build/Default/iwi2200.kext loaded successfully
check dmesg for the driver generated output and check if your device shows up in ifconfig by typing:
$iwi2200> dmesg
$iwi2200> ifconfig -a
Good Luck, happy hacking...
first step is to download the firmware at http://ipw2200.sourceforge.net/firmware.php (i used version 2.4) and copy the ipw-*.fw files into iwi2000/firmware/. In that directory you will find a file called hex2string. hex2string will generate a C-String headers out of the firmware files: All you need to do is:
$> cd iwi2200/firmware
$iwi2200/firmware> ./hex2string ipw-2.4-boot.fw iwi_boot > iwi_boot.fw.h
$iwi2200/firmware> ./hex2string ipw-2.4-bss.fw iwi_bss > iwi_bss.fw.h
$iwi2200/firmware> ./hex2string ipw-2.4-bss_ucode.fw iwi_ucode_bss > iwi_ucode_bss.fw.h
(If you use a different version from 2.4 just replace the 2.4 with the version you downloaded.)
once you've created the required headers return back to the root of the iwi2200 directory with
$iwi2200/firmware> cd ..
now its time to compile the actual driver by using the Makefile:
$iwi22000> make
If this was successful then you got lucky!! To load the driver type:
$iwi2200> ./load
and you should read something like this:
kextunload: unload kext ./build/Default/iwi2200.kext failed
kextload: ./build/Default/iwi2200.kext loaded successfully
check dmesg for the driver generated output and check if your device shows up in ifconfig by typing:
$iwi2200> dmesg
$iwi2200> ifconfig -a
Good Luck, happy hacking...
- flashcream
- Posts: 38388
- Joined: Fri Apr 22, 2005 8:41 pm
-
Gran Maestro
- Posts: 1457
- Joined: Thu May 12, 2005 2:46 am
dennyxx82 wrote:si è make install
io ho fatto così:
mi sono loggato come root
ho digitato make
ma mi dice command not found
come devo fare
Lascia perdere root, non occorre disturbarlo per compilare un programmino; basta e avanza sudo come ti ha anticipato il buon flashcream.
(se hai i privilegi nelle directory in cui scrive il compiler, probabilmente non occorre neanche quello)
/P
"La principale causa di tutti i guai del mondo al giorno d'oggi è che gli stupidi sono assolutamente sicuri di sé mentre gli intelligenti sono pieni di dubbi" (Bertrand Russell)