terminal applications

Miscellaneous tools
Message
Author
rokytnji
Posts: 2262
Joined: Tue 20 Jan 2009, 15:54

Dirty run

#31 Post by rokytnji »

I tried making a .deb out of .tar.bz2 in AntiX. Failed.

Code: Select all

root@biker:/home/harry/pianobar/pianobar-2011.09.22# checkinstall -D make install

checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.



*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values: 

0 -  Maintainer: [ root@biker ]
1 -  Summary: [ pianobar ]
2 -  Name:    [ pianobar ]
3 -  Version: [ 2011.09.22 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ pianobar-2011.09.22 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ pianobar ]
12 - Conflicts: [  ]
13 - Replaces: [  ]

Enter a number to change any of them or press ENTER to continue: 

Installing with make install...

========================= Installation results ===========================
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/main.o src/main.c
In file included from src/main.h:30:0,
                 from src/main.c:52:
src/player.h:37:19: fatal error: ao/ao.h: No such file or directory
compilation terminated.
make: *** [src/main.o] Error 1

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

root@biker:/home/harry/pianobar/pianobar-2011.09.22#  checkinstall -D make install

checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.



*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values: 

0 -  Maintainer: [ root@biker ]
1 -  Summary: [ pianobar ]
2 -  Name:    [ pianobar ]
3 -  Version: [ 2011.09.22 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ pianobar-2011.09.22 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ pianobar ]
12 - Conflicts: [  ]
13 - Replaces: [  ]

Enter a number to change any of them or press ENTER to continue: 13
Enter the replaced packages: 
>> pianobar-2011.07.09

This package will be built according to these values: 

0 -  Maintainer: [ root@biker ]
1 -  Summary: [ pianobar ]
2 -  Name:    [ pianobar ]
3 -  Version: [ 2011.09.22 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ pianobar-2011.09.22 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ pianobar ]
12 - Conflicts: [  ]
13 - Replaces: [ pianobar-2011.07.09 ]

Enter a number to change any of them or press ENTER to continue: 10
Enter the additional requirements: 
>> gmake libao libfaad2 libmad pthreads

This package will be built according to these values: 

0 -  Maintainer: [ root@biker ]
1 -  Summary: [ pianobar ]
2 -  Name:    [ pianobar ]
3 -  Version: [ 2011.09.22 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ pianobar-2011.09.22 ]
9 -  Alternate source location: [  ]
10 - Requires: [ gmake libao libfaad2 libmad pthreads ]
11 - Provides: [ pianobar ]
12 - Conflicts: [  ]
13 - Replaces: [ pianobar-2011.07.09 ]

Enter a number to change any of them or press ENTER to continue: 

Installing with make install...

========================= Installation results ===========================
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/main.o src/main.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/player.o src/player.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/settings.o src/settings.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/terminal.o src/terminal.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/ui_act.o src/ui_act.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/ui.o src/ui.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/ui_readline.o src/ui_readline.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/ui_dispatch.o src/ui_dispatch.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/libpiano/crypt.o src/libpiano/crypt.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/libpiano/piano.o src/libpiano/piano.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/libpiano/xml.o src/libpiano/xml.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/libwaitress/waitress.o src/libwaitress/waitress.c
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/libezxml/ezxml.o src/libezxml/ezxml.c
c99 -O2 -DNDEBUG  src/main.o src/player.o src/settings.o src/terminal.o src/ui_act.o src/ui.o src/ui_readline.o src/ui_dispatch.o src/libpiano/crypt.o src/libpiano/piano.o src/libpiano/xml.o \
			src/libwaitress/waitress.o src/libezxml/ezxml.o -lao -lpthread -lm \
			-lfaad -lmad -o pianobar
install -d //usr/local/bin/
install -m755 pianobar //usr/local/bin/
install -d //usr/local/share/man/man1/
install -m644 contrib/pianobar.1 //usr/local/share/man/man1/

======================== Installation successful ==========================

Copying documentation directory...
./
./ChangeLog
./INSTALL
./README
./COPYING

Copying files to the temporary directory...OK

Stripping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package... FAILED!

*** Failed to build the package

Do you want to see the log file?  [y]: y

Erasing temporary files...OK

Writing backup package...OK
OK

Deleting temp dir...OK
I have all the dependencies installed for pianobar in AntiX like libao4,faad2.7,make,checkinstall,.

If you notice though my installation went successful though. The only epic fail was making the .deb with checkinstall which fails to put pianobar-2011.09.22 in my package manager in Antix.


Code: Select all

root@biker:/home/harry/pianobar/pianobar-2011.09.22# apt-cache policy pianobar
pianobar:
  Installed: 2011.07.09-1
  Candidate: 2011.07.09-1
  Version table:
 *** 2011.07.09-1 0
        901 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
Bright side out of all of this though is I can run the current pianobar out of my /home/harry/pianobar/pianobar-2011.09.22 with the ./pianobar command

Code: Select all

harry@biker:~/pianobar/pianobar-2011.09.22$ ./pianobar
Welcome to pianobar (2011.09.22)! Press ? for a list of commands.
[?] Email: rok
[?] Password: 
(i) Login... Ok.
(i) Get stations... Ok.
	 0)     AC/DC Radio
	 1)     Audioslave Radio
	 2)     Avenged Sevenfold Radio
	 3)     Buckcherry Radio
	 4)     Charlie Sexton Radio
	 5)     Chris Rea Radio
	 6)     Depeche Mode Radio
	 7) q   Evanescence Radio
	 8)     Faith No More Radio
	 9)     Gary Numan/Tubeway Army Radio
	10)     Gorillaz Radio
	11)  Q  roks QuickMix
	12)     Hoobastank Radio
	13)     Jace Everett Radio
	14)     Les Claypool Radio
	15)     Little Feat Radio
	16)     Marilyn Manson Radio
	17)     Nickelback Radio
	18) q   Nine Inch Nails Radio
	19)     Puddle Of Mudd Radio
	20)     Savoy Brown Radio
	21)     Seether Radio
	22)     Stevie Ray Vaughan Radio
	23)     The Black Keys Radio
	24)     The Cult Radio
	25)     The Fabulous Thunderbirds Radio
	26)     Thin Lizzy Radio
	27)     Thousand Foot Krutch Radio
	28)     ZZ Top Radio
[?] Select station: 10
|>  Station "Gorillaz Radio" (375334589320037778)
(i) Receiving new playlist... Ok.
|>  "Dare (Soulwax Remix)" by "Gorillaz" on "D-Sides"
|>  "Take Me Out" by "Franz Ferdinand" on "Franz Ferdinand"
|>  "Wish Coin (Go It Alone - Remix By Diplo)" by "Beck" on "Guerolito"
|>  "Da Funk" by "Daft Punk" on "Musique Vol. 1: 1993 - 2005"
#   -03:14/05:34
I know this does not help you one bit sfeeley. I am in unknown territory myself right now :oops: ,

Being just a linux biker, not a programmer or script kiddie, sorry. :(

Later on. I will boot into Puppy 520 on this laptop and see what happens if I install from tar.bz2 with devx like I did with AntiX build-essentials.

I hope some member here better than me at building .pets is reading this thread and will show some mercy. :)

Edit: Forget about it from me. My pianobar-2011.09.22 install from tar.bz2 in puppy 520 full install fails miserably.

Code: Select all

# cc
cc: no input files
# make clean && make
rm -f src/main.o src/player.o src/settings.o src/terminal.o src/ui_act.o src/ui.o src/ui_readline.o src/ui_dispatch.o src/libpiano/crypt.o src/libpiano/piano.o src/libpiano/xml.o src/libwaitress/waitress.o src/libwaitress/waitress.o/test.o \
			src/libezxml/ezxml.o src/libpiano/crypt.lo src/libpiano/piano.lo src/libpiano/xml.lo src/libwaitress/waitress.lo \
			src/libezxml/ezxml.lo pianobar libpiano.so* libpiano.a waitress-test
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \
			-I src/libezxml -DENABLE_FAAD \
			-DENABLE_MAD -c -o src/main.o src/main.c
make: c99: Command not found
make: *** [src/main.o] Error 127
# 

Code: Select all

# make clean && make libpiano && make install-libpiano 
rm -f src/main.o src/player.o src/settings.o src/terminal.o src/ui_act.o src/ui.o src/ui_readline.o src/ui_dispatch.o src/libpiano/crypt.o src/libpiano/piano.o src/libpiano/xml.o src/libwaitress/waitress.o src/libwaitress/waitress.o/test.o \
			src/libezxml/ezxml.o src/libpiano/crypt.lo src/libpiano/piano.lo src/libpiano/xml.lo src/libwaitress/waitress.lo \
			src/libezxml/ezxml.lo pianobar libpiano.so* libpiano.a waitress-test
make: *** No rule to make target `libpiano'.  Stop.

rokytnji
Posts: 2262
Joined: Tue 20 Jan 2009, 15:54

Not a .pet

#32 Post by rokytnji »

Here is what I did. Since making a .pet was beyond my skillset out of a tar.bz2.

I used pmount to grab my pianobar folder in AntiX. Copied it over into / (root) in puppy 520. I symlinked the pianobar in that folder to /usr/bin in puppy 520. I made sure I uninstalled old pianobar in puppy package manager first. Leave faad and libao alone (do not uninstall)

Code: Select all

 Woof Woof! Welcome to puppy console
         .:/+++/-`                                         
     `/hNMMMMMMMMMms-                                       
    +mMMMMMMMMMMMMMMMh-                                      
  `dMMMMMMMMMMMNNMMMMMM+                        `..`          
  hMMMMMMMMMh:`` `-sMMMM/                    `+dNMMMmy-        
 -NMMMMMMMMo        :MMMd                   `mMMMMMMMMM/        
 :MMMMMMMMN.        `mMMm                   oMMMMMMMMMMd         
 .NMMMMMMMMy`       +MMMy                   -NMMMMMMMMMs         
  +MMMMMMMMMmo:..-+dMMMm`                    -dMMMMMMNo          
   /NMMMMMMMMMMMMMMMMMh.                       ./++/-            
    `omMMMMMMMMMMMMMh:   .----------------`                      
       -ohmNNMNmdy/.    +MMMMMMMMMMMMMMMMMN.                     
                        `+mMMMMMMMMMMMMMMd:                      
                          `+mMMMMMMMMMMd:                        
                            `+NMMMMMMd:                          
                 ./.           +NMMh:           ::               
                 +Mm-          /NMMy`         `sMd`              
                  /mMy:`    `/hMd:sMNo-     .+mMy`               
                   `/hNMmmmNMmy:   .odNNmmmNMds.                 
                       .-::-`         `.:::-`                    
                                                                 
# pianobar
ERROR: Failed to load plugin /usr/lib/ao/plugins-4/libsndio.so => dlopen() failed
ERROR: Failed to load plugin /usr/lib/ao/plugins-4/libroar.so => dlopen() failed
Welcome to pianobar (2011.09.22)! Press ? for a list of commands.
[?] Email: rok
[?] Password: 
(i) Login... Ok.
(i) Get stations... Ok.
	 0)     AC/DC Radio
	 1)     Audioslave Radio
	 2)     Avenged Sevenfold Radio
	 3)     Buckcherry Radio
	 4)     Charlie Sexton Radio
	 5)     Chris Rea Radio
	 6)     Depeche Mode Radio
	 7) q   Evanescence Radio
	 8)     Faith No More Radio
	 9)     Gary Numan/Tubeway Army Radio
	10)     Gorillaz Radio
	11)  Q  rok QuickMix
	12)     Hoobastank Radio
	13)     Jace Everett Radio
	14)     Les Claypool Radio
	15)     Little Feat Radio
	16)     Marilyn Manson Radio
	17)     Nickelback Radio
	18) q   Nine Inch Nails Radio
	19)     Puddle Of Mudd Radio
	20)     Savoy Brown Radio
	21)     Seether Radio
	22)     Stevie Ray Vaughan Radio
	23)     The Black Keys Radio
	24)     The Cult Radio
	25)     The Fabulous Thunderbirds Radio
	26)     Thin Lizzy Radio
	27)     Thousand Foot Krutch Radio
	28)     ZZ Top Radio
[?] Select station: 28
|>  Station "ZZ Top Radio" (426160442026919314)
(i) Receiving new playlist... Ok.
|>  "Give It Up" by "ZZ Top" on "Greatest Hits"
socket(): Address family not supported by protocol
|>  "I Heard It Through The Grapevine" by "Creedence Clearwater Revival" on "Chronicles"
socket(): Address family not supported by protocol
#   -08:34/11:06
My zipped folder extract to / in puppy 520.

typo error in description for in zip. It should say symlink pianobar (absolute) to /usr/bin

Edit:Tested this in Macpup 528 also installing like I did above (it works). Make sure you install liba04 pet I posted and faad2.7 wolfe pet I posted in link in this thread also before running pianobar in MacPup 528. The only thing I did different was to extract the .zip to /opt in Macpup. Symlinking (drag and drop) to /usr bin was the same and used absolute for symlink.
Attachments
pianobar.jpg
(56.91 KiB) Downloaded 870 times

sfeeley
Posts: 812
Joined: Sun 14 Feb 2010, 16:34

#33 Post by sfeeley »

Rocky
I'm out of town away from my puppy computer for a couple of days, so I won't be able to test right away-- but this looks really promising.

Again, thanks so much -- I look forward to trying it.

rokytnji
Posts: 2262
Joined: Tue 20 Jan 2009, 15:54

New Pianobar Pets

#34 Post by rokytnji »

Took a few days for Debian Sid to catch up with some Debian Packages. Here are the new .pets. I deleted my symlink and made and installed these pets on my Puppy 520 install. It works. I am not going to test on my MacPup 528 as I am happy with the way I got it working in my above post also. So no need. It will probably work in any Puppy 5 series anyhows. Make sure you uninstall old pianobar pets, (leave faad and libao alone though).

sfeeley
Posts: 812
Joined: Sun 14 Feb 2010, 16:34

#35 Post by sfeeley »

Roky-- I tried the new pets and they work great (with the usual errors at start). Again, thanks so much.

(PS-- I love pianobar. Since I'm too easily distracted by the internet, I've set up one savefile with no browser, but with pianobar I can still get music while I write.)

rokytnji
Posts: 2262
Joined: Tue 20 Jan 2009, 15:54

Betcha it broke again

#36 Post by rokytnji »

This is latest pianobar from git version 11.09-dev

Uninstall the old .pet I made for now. Download the .zip. Extract in / . Open folder and find pianobar bin I compiled from source.

Open another rox filer and go to /usr/bin

Drag and drop pianobar to /usr/bin and symlink (relative is what I use)

Code: Select all

roky@biker:~$ pianobar
Welcome to pianobar (2011.11.09-dev)! Press ? for a list of commands.
[?] Email:
[?] Password: 
(i) Login... Ok.
(i) Get stations... Ok.
	 0)     AC/DC Radio
	 1)     Audioslave Radio
	 2)     Avenged Sevenfold Radio
	 3)     Buckcherry Radio
	 4)     Charlie Sexton Radio
	 5)     Chris Rea Radio
	 6)     Depeche Mode Radio
	 7) q   Evanescence Radio
	 8)     Faith No More Radio
	 9)     Funkadelic Radio
	10)     Gary Numan/Tubeway Army Radio
	11)     Gorillaz Radio
	12)  Q  roky's QuickMix
	13)     Hoobastank Radio
	14)     Les Claypool Radio
	15)     Little Feat Radio
	16)     Marilyn Manson Radio
	17)     Nickelback Radio
	18) q   Nine Inch Nails Radio
	19)     Puddle Of Mudd Radio
	20)     Savoy Brown Radio
	21)     Seether Radio
	22)     Stevie Ray Vaughan Radio
	23)     The Black Keys Radio
	24)     The Cult Radio
	25)     The Fabulous Thunderbirds Radio
	26)     Thin Lizzy Radio
	27)     Thousand Foot Krutch Radio
	28)     ZZ Top Radio
[?] Select station: 9
|>  Station "Funkadelic Radio" (625473948495545746)
(i) Receiving new playlist... Ok.
|>  "I Bet You" by "Funkadelic" on "Funkadelic"
|>  "Dr. Funkenstein" by "Parliament" on "Parliament Gold"
|>  "Catfish Blues" by "Jimi Hendrix" on "Blues"
|>  "Get Up I Feel Like Being A Sex Machine (Live)" by "James Brown" on "Sex Machine (Live)"
#   -04:42/10:48
If someone else can make a pet out of this. All the better.

BIG EDIT : Well. I finally had some time to get to my Puppy 520 Laptop, I downloaded my zip. Installed it. Got a gnutls 2.10 error. So I installed from coolpups site http://www.smokey01.com/coolpup/gnutls- ... 110223.pet to get rid of the gnutls error.

Trouble is.

Code: Select all

sh-4.1# pianobar
ERROR: Failed to load plugin /usr/lib/ao/plugins-4/libsndio.so => dlopen() failed
ERROR: Failed to load plugin /usr/lib/ao/plugins-4/libroar.so => dlopen() failed
Welcome to pianobar (2011.11.09-dev)! Press ? for a list of commands.
[?] Email: 
[?] Password: 
(i) Login... Network error: TLS handshake failed.
I don't know why this happens in Puppy 520 but it works OK in my AntiX installed Computers. So hold back I guess till I figure this error out. If I can :?:
Attachments
PromyLOPh-pianobar-b14463a.zip
(116.73 KiB) Downloaded 335 times

Post Reply