View previous topic :: View next topic |
Author |
Message |
tefp n00b
Joined: 18 Aug 2008 Posts: 53
|
Posted: Fri Sep 05, 2008 6:07 pm Post subject: ebuild songbird error |
|
|
This is my first time installing from an ebuild. I will walk through the entire process to make sure i got it correct. I am getting the ebuild from: http://www.songbirdnest.com/node/2039
Code: |
mkdir -p /usr/local/portage/overlay/media-sound/Songbird-bin
|
Then create an overlay:
Code: |
nano -w /etc/make.conf
and add: PORTDIR_OVERLAY="/usr/local/portage/overlay"
|
Then cd into the created directory
Code: |
cd /usr/local/portage/overlay/media-sound/Songbird-bin
|
Then.
Code: |
wget -o Songbird-bin-0.6.ebuild http://paste.org/index.php?id=3066
and make digest: ebuild Songbird-bin-0.6.ebuild digest
|
And then it gives me the following error message:
Code: |
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: lin
e 1: --2008-09-05: command not found
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: lin
e 2: Resolving: command not found
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: lin
e 3: Connecting: command not found
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: lin
e 3: 74.52.141.130: command not found
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: lin
e 3: :80...: command not found
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: lin
e 4: HTTP: command not found
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: lin
e 5: Length:: command not found
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: lin
e 10: unexpected EOF while looking for matching `''
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: lin
e 12: syntax error: unexpected end of file
*
* ERROR: media-sound/Songbird-bin-0.6 failed.
* Call stack:
* ebuild.sh, line 1696: Called die
* The specific snippet of code:
* source "${EBUILD}" || die "error sourcing ebuild"
* The die message:
* error sourcing ebuild
*
* If you need support, post the topmost build error, and the call stack if rele
vant.
* This ebuild is from an overlay: '/usr/local/portage/overlay/'
|
Any help would be most appreciated |
|
Back to top |
|
|
Wormo Retired Dev
Joined: 29 Nov 2004 Posts: 526 Location: SB County California
|
Posted: Mon Sep 08, 2008 6:26 am Post subject: |
|
|
Your method for fetching the ebuild does not work.
- wget needs '-O' instead of '-o' when supplying name to save downloaded file
- the url you linked to has the ebuild contents formatted as html instead of being the actual text ebuild file
A paste-bin site is not an ideal way to transfer ebuilds, due to the reformatting problem. You could use your browser to view http://paste.org/forums/viewtopic.php?id=720 and manually copy and paste the code to a new file. |
|
Back to top |
|
|
tefp n00b
Joined: 18 Aug 2008 Posts: 53
|
Posted: Mon Sep 08, 2008 3:17 pm Post subject: |
|
|
ok thanks, i'll give it a try |
|
Back to top |
|
|
tefp n00b
Joined: 18 Aug 2008 Posts: 53
|
Posted: Tue Sep 09, 2008 1:46 am Post subject: |
|
|
When i copy the text and paste it into open office, what file format do i need to save it as? I tried it as both a txt and doc file but neither worked.
It said the given file couldn't be found. |
|
Back to top |
|
|
Jupiter1TX Guru
Joined: 24 Feb 2006 Posts: 546 Location: 3rd Rock
|
Posted: Tue Sep 09, 2008 1:56 am Post subject: |
|
|
tefp wrote: | When i copy the text and paste it into open office, what file format do i need to save it as? I tried it as both a txt and doc file but neither worked.
It said the given file couldn't be found. |
It is an ebuild so it should be saved in a text editor as 'appname_version.ebuild'
Alternately you can add the Arcon overlay which includes
songbird-bin-0.6_pre20080509.ebuild
P.S. Overlay guide
http://www.gentoo.org/proj/en/overlays/userguide.xml _________________ Core i7 920 D0 | Asus P6T DLX | Patriot Viper 1600 6GB | Antec Quattro 850W
Geforce 8800GTX OC2 768MB | Dell 22" LCD | Koolance Exos2/Swiftech GTZ
GCC 4.6.1 | 3.7.x-geek | Xorg-7.4-x | KDE-4.7.x | Compiz |
|
Back to top |
|
|
tefp n00b
Joined: 18 Aug 2008 Posts: 53
|
Posted: Tue Sep 09, 2008 2:23 am Post subject: |
|
|
I don't exactly understand what your saying. I save the file as Songbird-bin-0.6.ebuild and then it saves it in a certain file format and sticks a .txt or .doc to the end of the file.
Just to experiment i ran:
Code: |
ebuild Songbird-bin-0.6.ebuild.txt digest
|
it gave this error:
!!! media-sound/Songbird-bin-0.6.ebu does not follow correct package syntax. |
|
Back to top |
|
|
tefp n00b
Joined: 18 Aug 2008 Posts: 53
|
Posted: Tue Sep 09, 2008 9:44 pm Post subject: |
|
|
Wormo wrote: |
- the url you linked to has the ebuild contents formatted as html instead of being the actual text ebuild file
|
That was a stupid mistake on my part. I didn't read Wormo's post closely enough. So i went a head and saved it as a html file and tried again. And this is what i get.
Code: |
ebuild Songbird-bin-0.6.ebuild digest
'/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild' does not exist.
|
The only thing is, it does exist. Help |
|
Back to top |
|
|
Jupiter1TX Guru
Joined: 24 Feb 2006 Posts: 546 Location: 3rd Rock
|
Posted: Tue Sep 09, 2008 10:30 pm Post subject: |
|
|
tefp wrote: |
Code: |
ebuild Songbird-bin-0.6.ebuild digest
'/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild' does not exist.
|
The only thing is, it does exist. Help |
Try using a text editor rather then a document editor and save it that way.
Use gedit in gnome or kate in kde or nano in a terminal.
Once saved properly then digest it
Code: | ebuild Songbird-bin-0.6.ebuild digest |
_________________ Core i7 920 D0 | Asus P6T DLX | Patriot Viper 1600 6GB | Antec Quattro 850W
Geforce 8800GTX OC2 768MB | Dell 22" LCD | Koolance Exos2/Swiftech GTZ
GCC 4.6.1 | 3.7.x-geek | Xorg-7.4-x | KDE-4.7.x | Compiz |
|
Back to top |
|
|
tefp n00b
Joined: 18 Aug 2008 Posts: 53
|
Posted: Tue Sep 09, 2008 11:38 pm Post subject: |
|
|
I thought that would have done it. But no.
I opened the .html file in nano then saved it but took out the .html at the end of the filename and saved it. Then i cd into the correct directory and ran:
Code: |
ebuild Songbird-bin-0.6.ebuild digest
|
and it gives me this error:
Code: |
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: line 1: syntax error near unexpected token `newline'
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: line 1: `<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'
*
* ERROR: media-sound/Songbird-bin-0.6 failed.
* Call stack:
* ebuild.sh, line 1696: Called die
* The specific snippet of code:
* source "${EBUILD}" || die "error sourcing ebuild"
* The die message:
* error sourcing ebuild
*
* If you need support, post the topmost build error, and the call stack if relevant.
* This ebuild is from an overlay: '/usr/local/portage/overlay/'
|
Thanks for all of your help so far. Could this be a bad ebuild? Should i try installing a previous version to see if that works? |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Tue Sep 09, 2008 11:49 pm Post subject: |
|
|
I will try to sumarize in a clearer manner what others have already said.
1.- Ebuilds are plain text files. What does that mean? It means that you must be able to open them in nano, vim, or another basic text editor (and I mean "text editor" and not "word processor").
2.- Ebuilds are bash scripts ultimately, they should not contain html tags. If they do, then you saved the ebuild incorrectly. If you save an html page on your browser, then you get an html page, and an html page is not an ebuild.
Errors like this one should be easy to understand:
Code: |
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: line 1: syntax error near unexpected token `newline'
/usr/local/portage/overlay/media-sound/Songbird-bin/Songbird-bin-0.6.ebuild: line 1: `<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
|
The same error is telling you that there are HTML tags inside the ebuild. That directly means that you have not saved your ebuild the right way, and hence, it's unusable. So, if a plain text file is available, download it. If not, copy the text and paste it in nano, or a basic text editor (again, not a word processor), and save it with the correct ebuild name. |
|
Back to top |
|
|
tefp n00b
Joined: 18 Aug 2008 Posts: 53
|
Posted: Wed Sep 10, 2008 1:31 am Post subject: |
|
|
ok, thanks i got it |
|
Back to top |
|
|
|