View previous topic :: View next topic |
Author |
Message |
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Mon Aug 29, 2016 11:18 am Post subject: [Risolto]Installare da sorgenti |
|
|
Ciao a tutti,
mi sono avvicinato a Gentoo da pochissimo.
Dovrei installare un Software da sorgente. Mi sembra di aver capito che per usare emerge in questo caso avrei bisogno di un ebuild, che per quasto Software esiste
http://gpo.zugaina.org/media-sound/squeezelite
Ma non ho la piú pallida idea di come Procedere.
Grazie
Last edited by antonellocaroli on Tue Aug 30, 2016 5:18 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30822 Location: here
|
Posted: Mon Aug 29, 2016 11:38 am Post subject: |
|
|
Per prima cosa benvenuto.
Per installarlo basta che configuri layman così da potere aggiungere l'overlay (in questo caso o lmiphay o squeezebox) che contanga l'ebuild che hai bisogno, per poi installarlo con emerge.
Gli overlay sono repository contenenti programmi non supportati ancora ufficialmente da gentoo (il portage tree puoi vederlo come overlay ufficiale) e mantenuti o da utenti normali (anhe tu ne potresti farne uno volendo) o a volte anche dai sviluppatori (puoi vedere la lista qua). _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Mon Aug 29, 2016 7:45 pm Post subject: |
|
|
Grazie per il benvenuto!! e grazie per il consiglio, che ha funzionato
Code: | >>> Install squeezelite-1.8.4.743-r1 into /var/tmp/portage/media-sound/squeezelite-1.8.4.743-r1/image/ category media-sound
>>> Completed installing squeezelite-1.8.4.743-r1 into /var/tmp/portage/media-sound/squeezelite-1.8.4.743-r1/image/
* Final size of build directory: 1124 KiB
* Final size of installed tree: 184 KiB
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
usr/bin/squeezelite
ecompressdir: bzip2 -9 /usr/share/doc
>>> Installing (2 of 2) media-sound/squeezelite-1.8.4.743-r1::lmiphay
* If you want start Squeezelite automatically on system boot:
* rc-update add squeezelite default
* Edit /etc/cond.d/squeezelite to customise -- in particular
* you may want to set the audio device to be used.
>>> Recording media-sound/squeezelite in "world" favorites file...
* Messages for package media-sound/squeezelite-1.8.4.743-r1:
* If you want start Squeezelite automatically on system boot:
* rc-update add squeezelite default
* Edit /etc/cond.d/squeezelite to customise -- in particular
* you may want to set the audio device to be used.
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
|
ma in effetti non é la versione di questo software che mi interessa...mi servirebbe un´altra versione di cui ci sono i sorgenti.
Come potrei compilarli con emerge? potrei usare anche la stessa ebuild credo...
potrei usare questo suggerimento (da un altro tread) che mi é capitato sottocchio
ProT-0-TypE wrote: | per usare ebuild che non sono presenti nel portage puoi fare così:
crei una directory per il tuo portage overlay, es:
Code: | mkdir /usr/local/portage |
setti la variabile nel make.conf:
Code: | PORTDIR_OVERLAY="/usr/local/portage" |
scarichi l'ebuild e lo metti nella directory giusta, in questo caso:
Code: | mkdir -p /usr/local/portage/net-misc/ltsp |
e metti l'ebuild (che si chiamerà lstp-VERSIONE.ebuild o qualcosa del genere) in quella directory
vai in quella directory e crei il digest:
Code: | cd /usr/local/portage/net-misc/ltsp
ebuild lstp-VERSIONE.ebuild digest |
quasi sicuramente l'ebuild sarà mascherato per cui dovrai smascherarlo:
Code: | echo "=net-misc/ltsp-VERSIONE ~x86" >> /etc/portage/package.keywords |
se la tua architettura è x86. Se la directory /etc/portage/ non esiste creala.
Ora puoi emergere il pacchetto normalmente |
ma poi dove dovrei mettere il file tar.gz dei sorgenti che mi interessano?
scusa la mia ignoranza |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30822 Location: here
|
Posted: Mon Aug 29, 2016 8:02 pm Post subject: |
|
|
Per creare un obverlay locale ti consiglio di usare la guida ufficiale (qui) che almeno sei sicuro che è aggiornata.
Poi puoi copiare l'ebuild sotto /usr/local/portage/media-sound/squeezelite e rinominarlo con la versione che ti serve (squeezelite-1.x.ebuild) e copiare il file dei sorgenti in /usr/portage/distfiles. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Mon Aug 29, 2016 9:25 pm Post subject: |
|
|
Grazie mille per l´aiuto....ma temo (a meno di mei sbagli) che la stessa ebuild non vada bene
Code: | gentooplay squeezelite # emerge --ask --verbose --oneshot app-dicts/squeezelite
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ~] app-dicts/squeezelite-1.8.5::squeezelite USE="aac dsd ffmpeg flac mad mpg123 vorbis -pulseaudio -resample -visexport" 0 KiB
Total: 1 package (1 new), Size of downloads: 0 KiB
Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-dicts/squeezelite-1.8.5::squeezelite
>>> Unpacking source...
* Fetching https://github.com/ralph-irving/squeezelite.git ...
git fetch https://github.com/ralph-irving/squeezelite.git +HEAD:refs/git-r3/HEAD
git update-ref --no-deref refs/git-r3/app-dicts/squeezelite/0/__main__ e37ed17fed9e11a7346cbe9f1e1deeccc051f42e
* Checking out https://github.com/ralph-irving/squeezelite.git to /var/tmp/portage/app-dicts/squeezelite-1.8.5/work/squeezelite-1.8.5 ...
git checkout --quiet e37ed17fed9e11a7346cbe9f1e1deeccc051f42e
GIT update -->
repository: https://github.com/ralph-irving/squeezelite.git
at the commit: e37ed17fed9e11a7346cbe9f1e1deeccc051f42e
>>> Source unpacked in /var/tmp/portage/app-dicts/squeezelite-1.8.5/work
>>> Preparing source in /var/tmp/portage/app-dicts/squeezelite-1.8.5/work/squeezelite-1.8.5 ...
* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is:
*
* /usr/local/portage/app-dicts/squeezelite/files/squeezelite-1.8.5-gentoo-makefile.patch
* ( squeezelite-1.8.5-gentoo-makefile.patch )
* ERROR: app-dicts/squeezelite-1.8.5::squeezelite failed (prepare phase):
* Cannot find $EPATCH_SOURCE!
*
* Call stack:
* ebuild.sh, line 133: Called src_prepare
* environment, line 3307: Called epatch '/usr/local/portage/app-dicts/squeezelite/files/squeezelite-1.8.5-gentoo-makefile.patch'
* environment, line 1340: Called die
* The specific snippet of code:
* die "Cannot find \$EPATCH_SOURCE!";
*
* If you need support, post the output of `emerge --info '=app-dicts/squeezelite-1.8.5::squeezelite'`,
* the complete build log and the output of `emerge -pqv '=app-dicts/squeezelite-1.8.5::squeezelite'`.
* The complete build log is located at '/var/tmp/portage/app-dicts/squeezelite-1.8.5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-dicts/squeezelite-1.8.5/temp/environment'.
* Working directory: '/var/tmp/portage/app-dicts/squeezelite-1.8.5/work/squeezelite-1.8.5'
* S: '/var/tmp/portage/app-dicts/squeezelite-1.8.5/work/squeezelite-1.8.5'
>>> Failed to emerge app-dicts/squeezelite-1.8.5, Log file:
>>> '/var/tmp/portage/app-dicts/squeezelite-1.8.5/temp/build.log'
* Messages for package app-dicts/squeezelite-1.8.5:
* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is:
*
* /usr/local/portage/app-dicts/squeezelite/files/squeezelite-1.8.5-gentoo-makefile.patch
* ( squeezelite-1.8.5-gentoo-makefile.patch )
* ERROR: app-dicts/squeezelite-1.8.5::squeezelite failed (prepare phase):
* Cannot find $EPATCH_SOURCE!
*
* Call stack:
* ebuild.sh, line 133: Called src_prepare
* environment, line 3307: Called epatch '/usr/local/portage/app-dicts/squeezelite/files/squeezelite-1.8.5-gentoo-makefile.patch'
* environment, line 1340: Called die
* The specific snippet of code:
* die "Cannot find \$EPATCH_SOURCE!";
*
* If you need support, post the output of `emerge --info '=app-dicts/squeezelite-1.8.5::squeezelite'`,
* the complete build log and the output of `emerge -pqv '=app-dicts/squeezelite-1.8.5::squeezelite'`.
* The complete build log is located at '/var/tmp/portage/app-dicts/squeezelite-1.8.5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-dicts/squeezelite-1.8.5/temp/environment'.
* Working directory: '/var/tmp/portage/app-dicts/squeezelite-1.8.5/work/squeezelite-1.8.5'
* S: '/var/tmp/portage/app-dicts/squeezelite-1.8.5/work/squeezelite-1.8.5'
|
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30822 Location: here
|
Posted: Mon Aug 29, 2016 9:50 pm Post subject: |
|
|
Dove posso trovare i sorgenti di quella versione che almeno posso fare delle prove? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Mon Aug 29, 2016 9:54 pm Post subject: |
|
|
fedeliallalinea wrote: | Dove posso trovare i sorgenti di quella versione che almeno posso fare delle prove? |
https://github.com/marcoc1712/squeezelite-R2/releases/
Source code (tar.gz)
[url]https://github.com/marcoc1712/squeezelite-R2/archive/v1.8.3-(R2).tar.gz[/url]
io poi le ho rinominate (squeezelite-1.8.5) per una serie di problemi con il nome.... |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30822 Location: here
|
Posted: Tue Aug 30, 2016 7:07 am Post subject: |
|
|
Allora ho creato l'ebuild con i file relativi per la versione che mi hai linkato e la trovi qui.
Scompatta il pacchetto e copialo sotto il tuo overlay local e poi installa
Code: | # cp -r squeezelite-R2 /usr/local/portage/media-sound/
# emerge squeezelite-R2 |
Nessuna garanzia che funzioni _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Tue Aug 30, 2016 8:43 am Post subject: |
|
|
fedeliallalinea wrote: | Allora ho creato l'ebuild con i file relativi per la versione che mi hai linkato e la trovi qui.
Scompatta il pacchetto e copialo sotto il tuo overlay local e poi installa
Code: | # cp -r squeezelite-R2 /usr/local/portage/media-sound/
# emerge squeezelite-R2 |
Nessuna garanzia che funzioni |
Grazie Mille!!!
Stasera Provo...ti faccio sapere.
PS: ho visto che dentro c´é anche il manifesto...quindi non lo devo creare. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30822 Location: here
|
Posted: Tue Aug 30, 2016 9:04 am Post subject: |
|
|
antonellocaroli wrote: | Stasera Provo...ti faccio sapere. |
Parti dal fatto che non ho la più pallida idea di cosa faccia questo software; io ho solo adattato l'ebuild esistente per questa versione (che mi pare è anche mantenuta da un'altra persona se non sbaglio)
antonellocaroli wrote: | PS: ho visto che dentro c´é anche il manifesto...quindi non lo devo creare. |
Esatto ma se ti da qualche problema con il checksum ricrealo _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Tue Aug 30, 2016 4:58 pm Post subject: |
|
|
fedeliallalinea wrote: | antonellocaroli wrote: | Stasera Provo...ti faccio sapere. |
Parti dal fatto che non ho la più pallida idea di cosa faccia questo software; io ho solo adattato l'ebuild esistente per questa versione (che mi pare è anche mantenuta da un'altra persona se non sbaglio)
|
Che dire....Grazie mille!!! ha funzionato perfettamente!!! |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30822 Location: here
|
Posted: Tue Aug 30, 2016 5:13 pm Post subject: |
|
|
antonellocaroli wrote: | Che dire....Grazie mille!!! ha funzionato perfettamente!!! |
Ottimo!
Di solito quando si risolve un problema c'è la convenzione di aggiungere [Risolto] al titolo, che puoi fare editando il primo post e aggiungere il tag al titolo _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Tue Aug 30, 2016 5:19 pm Post subject: |
|
|
fedeliallalinea wrote: |
Di solito quando si risolve un problema c'è la convenzione di aggiungere [Risolto] al titolo, che puoi fare editando il primo post e aggiungere il tag al titolo |
Fatto! grazie di nuovo! |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Fri Sep 02, 2016 3:55 am Post subject: |
|
|
Ciao, sono tornato...
allora aveva funzionato tutto bene su una macchina. (dove avevo fatto l´installazione anche dell´altro sorgente e disinstallato)
ma su un´altra installazione "vergine" va tutto bene...installazione a buon fine...il binario funziona...
ma se do /etc/init.d/squeezelite-R2 restart mi da questo errore:
* Caching service dependencies ... [ ok ]
* Stopping squeezelite-R2 ...
* start-stop-daemon: no matching processes found [ ok ]
* checkpath: owner `squeezelite:squeezelite' not found
* ERROR: squeezelite-R2 failed to start
presumo sia qualche problema con l´utente squeezelite...
editando il file /etc/init.d/squeezelite-R2 e sostituendo a squeezelite:squeezelite > root:root
funziona... |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30822 Location: here
|
Posted: Fri Sep 02, 2016 6:13 am Post subject: |
|
|
Si mettendo root:root funziona ma probabilmente non è una buona soluzione.
Ho corretto l'ebuild in modo che non dia più quell'errore, spero (lo trovi qui). _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Fri Sep 02, 2016 7:57 am Post subject: |
|
|
fedeliallalinea wrote: | Si mettendo root:root funziona ma probabilmente non è una buona soluzione.]). |
si, lo pensavo anche io...
fedeliallalinea wrote: | Ho corretto l'ebuild in modo che non dia più quell'errore, spero (lo trovi qui). |
Grazie ancora!!! gentilissimo!!!
saró qualche giorno in vacanza...appena torno la Provo e ti faccio sapere. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 503
|
Posted: Fri Sep 09, 2016 10:20 am Post subject: |
|
|
Di nuovo Grazie!!!
tutto perfetto!!! |
|
Back to top |
|
|
|