Tiny Core Extensions > TCE Q&A Forum
Pianobar
Blake:
I saw a few earlier posts that looked unanswered about pianobar. It also looks like at one time a pianobar.tcz was included. I tried installing from git hub source and get an error:
--- Code: ---make: c99: Command not found
make: *** [Makefile:108: src/main.o] Error 127
--- End code ---
I also setup a deb2tc and pianobar shows in /usr/local/tce.installed after tce-load -i pianobar.tcz. I cannot run pianobar by typing pianobar though so I must be missing some other step.
Below is the deb2tc that works for me saving it as deb2tc.sh and running it.
--- Code: ---#!/bin/bash
# Create tce/tcz from Debian package
# Usage: $ scriptname packagename.deb packaganame.tce
# Depends: squashfs-tools, findutils, binutils
# References:
# - http://forum.tinycorelinux.net/index.php/topic,2325.msg12127.html
# - http://pastebin.com/ed5KSPsH
TMP1="`mktemp -d /tmp/tce.1.XXXXXX`"
TMP2="$TMP1"/pkg
FILE="$1"
APPNAME="$2"
INPUT=${FILE##*.}
extract() {
mkdir "$TMP2"
ar p "$FILE" data.tar.gz > "$TMP1"/data.tar.gz
tar xzvf "$TMP1"/data.tar.gz -C "$TMP2"
cd "$TMP2"
[ -d usr/share/doc ] && rm -r usr/share/doc
[ -d usr/share/man ] && rm -r usr/share/man
[ -d usr/share/menu ] && rm -r usr/share/menu
find . -type d -empty | xargs rmdir > /dev/null 2&>1
}
make() {
extract
if [ "$1" == "tce" ]; then
find `ls` -not -type d > "$TMP1"/list
tar -T "$TMP1"/list -czvf /home/"$USER"/"$APPNAME"
else
mksquashfs "$TMP2" /home/"$USER"/"$APPNAME"
fi
cd
rm -r "$TMP1"
}
[ "$USER" == "root" ] && echo "Do not run as root." && exit 1
[ -z "$APPNAME" ] && echo "You must specify an extension name." && exit 1
[ -f /home/"$USER"/"$APPNAME" ] && echo "You have an existing extension in your \
home directory, you need to move or delete it before trying again." && exit 1
[ -z "$1" ] && echo "You must specify a file."
if [ ! "$INPUT" == "deb" ] ; then
echo "Only Debian packages work with this."
exit 1
fi
EXT=${APPNAME##*.}
if [ `echo "$EXT" | grep "tce"` 2>/dev/null ]; then
make tce
elif [ `echo "$EXT" | grep "tcz"` 2>/dev/null ]; then
make tcz
else
echo "You need to specify either a tcz or tce for the output file."
exit 1
fi
if [ -f /home/"$USER"/"$APPNAME" ]; then
echo "Success."
else
echo "Something went wrong."
fi
--- End code ---
[EDIT]: Added code tags. Rich
Rich:
Hi Blake
--- Quote from: Blake on January 26, 2018, 07:59:08 AM ---
--- Code: ---make: c99: Command not found
make: *** [Makefile:108: src/main.o] Error 127
--- End code ---
--- End quote ---
I think make is trying to execute c99 which is not a command but a compiler directive.
Blake:
Any idea how to correct make attempting to compile?
Rich:
Hi Blake
I'm not very good with make files but if you post it I'll take a look at it. Possibly some other forum members may take a look too.
Blake:
I've added the make file the entire source package is from https://github.com/PromyLOPh/pianobar.git. I tried deb2tcz.sh the deb ver then tce-load -i pianobar.tcz but I cannot seem to run pianobar so I am not so sure of the success rate of deb2tcz or if I am missing a step.
Navigation
[0] Message Index
[#] Next page
Go to full version