Installazione programma con compilazione

Discussioni e feedback su pacchetti e repository MIB
Post Reply
User avatar
m4tt
Utente junior
Utente junior
Posts: 30
Joined: 11 April 2009, 18:39
OpenMandriva: 2009.1
Kernel: 2.6.29.4-desktop-69m
Desktop: kde4.2.2

Installazione programma con compilazione

Post by m4tt »

Salve,
fino ad adesso installavo i programmi tramite i repo, con aggiungi e rimuovi software oppure con urpmi.
Ora pero volevo installare un programma non pacchettizzato.
Ho estratto l'archivio in una directory, tramite konsole e con il comando cd sono entrato nella directory ed ho lanciato il comando ./configure e appaiono queste scritte:

[root@localhost abgx360gui-1.0.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no[root@localhost abgx360gui-1.0.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.

Dalle varie guide lette in giro sembra che mi manchi qualcosa per creare il file make?
Mi spiegate se potete come risolvere queste situazioni anche con altri programmi.
Sono molto confuso riguardo a questo argomento.
Grazie mille per le eventuali risposte.

Saluti Matteo

User avatar
othoth-tux
Collaboratore
Collaboratore
Posts: 338
Joined: 4 February 2008, 19:55
OpenMandriva: OpenSuse 12.2
Kernel: 3.4.x
Desktop: Gnome3
country: Italy

Re: Installazione programma con compilazione

Post by othoth-tux »

ciao,
a quanto pare ti mancano i compilatori, prova a installarli con:

Code: Select all

urpmi gcc
poi riprova a compilare.
se hai ancora problemi noi siamo qui. :D

User avatar
m4tt
Utente junior
Utente junior
Posts: 30
Joined: 11 April 2009, 18:39
OpenMandriva: 2009.1
Kernel: 2.6.29.4-desktop-69m
Desktop: kde4.2.2

Re: Installazione programma con compilazione

Post by m4tt »

Ok grazie mille, stasera a casa provo e vi faccio sapere.
Una volta installato i compilatori rilancio configure e dopo make??

Ciao

User avatar
othoth-tux
Collaboratore
Collaboratore
Posts: 338
Joined: 4 February 2008, 19:55
OpenMandriva: OpenSuse 12.2
Kernel: 3.4.x
Desktop: Gnome3
country: Italy

Re: Installazione programma con compilazione

Post by othoth-tux »

prima ./configure,
poi make,
poi da root make install

User avatar
m4tt
Utente junior
Utente junior
Posts: 30
Joined: 11 April 2009, 18:39
OpenMandriva: 2009.1
Kernel: 2.6.29.4-desktop-69m
Desktop: kde4.2.2

Re: Installazione programma con compilazione

Post by m4tt »

Risposte alla velocità della luce........ grazie mille stasera vi faccio sapere ;)

User avatar
astragalo
Collaboratore
Collaboratore
Posts: 663
Joined: 7 December 2007, 18:29
ROSA: Rosa R11.1
OpenMandriva: -
Kernel: 4.15.xx
Desktop: Plasma5
country: Italia

Re: Installazione programma con compilazione

Post by astragalo »

Ciao, giusto per precisare come stanno le cose oltre a quello gia detto bisogna aggiungere che servono tutte le dipendenze che il programma richiede in compilazione ed esecuzione, questo viene di solito fatto dal gestore dei pacchetti (quando il pacchetto è preparato a dovere) in questo caso sei tu che ci devi pensare.

Altra nota, per la disinstallazione non sempre i porgrammi contengono il make uninstall in questi casi bisogna andare a cancellare a mano tutti i file che ha installato, la disinstallazione può essere indispensabile in certi casi di aggiornamento.

A conti fatti quando è possibile è meglio usare i precompilati. ;)

Ciao, e buon divertimento.

Astragalo
L'erba cattiva non muore mai!!! ;)
:D :D :D

User avatar
Roberto_65
Collaboratore
Collaboratore
Posts: 516
Joined: 6 December 2007, 23:56
OpenMandriva: 2009.1
Kernel: i686 x86_64
Desktop: Gnome Xfce4
Location: Triangolo delle Bermude
Contact:

Re: Installazione programma con compilazione

Post by Roberto_65 »

Ho trovato un bellissimo programma tra i repository di Mandriva: SOURCEINSTALL.
Per installarlo digita:

Code: Select all

urpmi --force -a sourceinstall sourceinstall-gtk
e per eseguirlo basta digitare:

Code: Select all

sourceinstall-gtk
Roberto_65
Packager delle MIB-Live
Il creatore delle MIB-Live
L'inventore di MIB-LiveToFlash
Triangolo delle Bermude http://www.sitohd.com/siti/3209

User avatar
m4tt
Utente junior
Utente junior
Posts: 30
Joined: 11 April 2009, 18:39
OpenMandriva: 2009.1
Kernel: 2.6.29.4-desktop-69m
Desktop: kde4.2.2

Re: Installazione programma con compilazione

Post by m4tt »

Allora ho provato tutte e due le soluzioni proposte, sia installando gcc che il programmino che fa tutto lui.....

1) caso, questo è il risultato:
[root@localhost abgx360gui-1.0.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.

Secondo caso da la stessa cosa con configure: error: C++ compiler cannot create executables
See `config.log' for more details.
alla fine.

Avete qualche idea?

Grazie mille ciao

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: Installazione programma con compilazione

Post by MauRice »

M4tt,

Se non mi sbaglio er avere i programmi principale per compilazione:

Code: Select all

urpmi task-c-devel task-c++-devel
Con la prossima installatione di Mandriva... segli "Custom" invece "KDE" o "Gnome" + "Development"

Ciao,
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

User avatar
m4tt
Utente junior
Utente junior
Posts: 30
Joined: 11 April 2009, 18:39
OpenMandriva: 2009.1
Kernel: 2.6.29.4-desktop-69m
Desktop: kde4.2.2

Re: Installazione programma con compilazione

Post by m4tt »

Ok ho installato la serie di pacchetti derivanti dal tuo comando, rilancio la compilazione, questa volta con Gnu source intaller e mi da questo errore in console:

configure: error:
wxWidgets must be installed on your system.

Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWidgets version is 2.5.0 or above.

Lo stesso errore me lo da facendo il ./configure da console.
Ho capito che c'entra qualcosa questo wxWidgets, ma sinceramente non so manco cosa sia

Aiutino? :D

Grazie

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: Installazione programma con compilazione

Post by MauRice »

m4tt wrote:Ok ho installato la serie di pacchetti derivanti dal tuo comando, rilancio la compilazione, questa volta con Gnu source intaller e mi da questo errore in console:

configure: error:
wxWidgets must be installed on your system.

Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWidgets version is 2.5.0 or above.

Lo stesso errore me lo da facendo il ./configure da console.
Ho capito che c'entra qualcosa questo wxWidgets, ma sinceramente non so manco cosa sia

Aiutino? :D

Grazie
M4tt,

Non e lo stesso errore...
Adesso ti mancano i pacchetti specifici per questo compilazione....
Questo programino chiede wxGTK.

Code: Select all

urpmi libwxgtk-devel
Ciao,
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

User avatar
m4tt
Utente junior
Utente junior
Posts: 30
Joined: 11 April 2009, 18:39
OpenMandriva: 2009.1
Kernel: 2.6.29.4-desktop-69m
Desktop: kde4.2.2

Re: Installazione programma con compilazione

Post by m4tt »

Il nuovo pacchetto è stato aggiunto con successo con Gnu source installer......
Grazie Maurice e grazie anche agli altri che mi hanno aiutato....
Ciao... e al prossimo problema :D

Post Reply