Como instalar Ultrastar (clon de SingStar) en la raspberry pi
-
- Pi Omega
- Mensajes: 74
- Registrado: 28 Sep 2016, 12:43
- Agradecido: 0
- Agradecimiento recibido: 0
Elegi el 1.2.12, las dependencias las he instalado todas una por una, siguiendo el tuto que me hiciste en el mensaje #68236 @Fire_Fox . No entiendo porque mi raspberry no me quiere, ahora voy a empezar otra vez de 0, no se cuantas veces van ya, y antes de crear y abrir el script, en cuanto instale las dependencias, voy ha hacer una copia de la SD, para no perder tanto tiempo.
- Fire_Fox
- Pi Omega
- Mensajes: 50
- Registrado: 26 Ago 2016, 11:41
- Agradecido: 0
- Agradecimiento recibido: 0
Eso hice yo hasta que lo conseguí xD
Si sigues el tuto viejo no debería de darte ningún problema, yo conseguí instalar y que funcionara perfecto la versión antiguo, pero aun sigo pegándome con la ultima versión y los script para que se encienda y apague auto.
Poco a poco.
Si sigues el tuto viejo no debería de darte ningún problema, yo conseguí instalar y que funcionara perfecto la versión antiguo, pero aun sigo pegándome con la ultima versión y los script para que se encienda y apague auto.
Poco a poco.
-
- Pi Omega
- Mensajes: 74
- Registrado: 28 Sep 2016, 12:43
- Agradecido: 0
- Agradecimiento recibido: 0
Alguien a conseguido instalar la ultima version?Fire_Fox escribió:Eso hice yo hasta que lo conseguí xD
Si sigues el tuto viejo no debería de darte ningún problema, yo conseguí instalar y que funcionara perfecto la versión antiguo, pero aun sigo pegándome con la ultima versión y los script para que se encienda y apague auto.
Poco a poco.
- Fire_Fox
- Pi Omega
- Mensajes: 50
- Registrado: 26 Ago 2016, 11:41
- Agradecido: 0
- Agradecimiento recibido: 0
Instale las depes a mano, instala las FPC las ultimas, luego en el script comenta todas las dependencias, para que no las instale.Gambo13 escribió:La instalaste con el script o metiste todo a mano?
Instala FM 3.3 el FPC ya estara instaldo, simplemente dale n intro, y la ultima versión de USDX Agosto 2017
Acabo de hacer una instalación limpia ahora mismo y va de lujo, el driver grafico elige el del medio, no el full.
-
- Pi Omega
- Mensajes: 74
- Registrado: 28 Sep 2016, 12:43
- Agradecido: 0
- Agradecimiento recibido: 0
Me puedes pasar una imagen de tu SD? No consigo instalar ninguna version, debo ser mas torpe de lo que pensaba.Fire_Fox escribió:Instale las depes a mano, instala las FPC las ultimas, luego en el script comenta todas las dependencias, para que no las instale.Gambo13 escribió:La instalaste con el script o metiste todo a mano?
Instala FM 3.3 el FPC ya estara instaldo, simplemente dale n intro, y la ultima versión de USDX Agosto 2017
Acabo de hacer una instalación limpia ahora mismo y va de lujo, el driver grafico elige el del medio, no el full.
- Fire_Fox
- Pi Omega
- Mensajes: 50
- Registrado: 26 Ago 2016, 11:41
- Agradecido: 0
- Agradecimiento recibido: 0
Aun no la tengo acabada, en cuanto la acabe al 100% te la paso sin problema, he hecho otro "tuto" que ayer hice varias veces y sin problema, te lo pego y síguelo al pie e la letra.Gambo13 escribió:Me puedes pasar una imagen de tu SD? No consigo instalar ninguna version, debo ser mas torpe de lo que pensaba.Fire_Fox escribió:Instale las depes a mano, instala las FPC las ultimas, luego en el script comenta todas las dependencias, para que no las instale.Gambo13 escribió:La instalaste con el script o metiste todo a mano?
Instala FM 3.3 el FPC ya estara instaldo, simplemente dale n intro, y la ultima versión de USDX Agosto 2017
Acabo de hacer una instalación limpia ahora mismo y va de lujo, el driver grafico elige el del medio, no el full.
Utiliza esta versión de Raspbian, no uses la de NOOBS
-
- Pi Omega
- Mensajes: 74
- Registrado: 28 Sep 2016, 12:43
- Agradecido: 0
- Agradecimiento recibido: 0
Ahora otro error nuevo:
Lo he echo con alguna modificacion en el script:
Código: Seleccionar todo
INSTALL libavfilter/buffersink.h
INSTALL libavfilter/buffersrc.h
INSTALL libavfilter/version.h
INSTALL libavfilter/libavfilter.pc
INSTALL libavformat/avformat.h
INSTALL libavformat/avio.h
INSTALL libavformat/version.h
INSTALL libavformat/libavformat.pc
INSTALL libavcodec/avcodec.h
INSTALL libavcodec/avdct.h
INSTALL libavcodec/avfft.h
INSTALL libavcodec/d3d11va.h
INSTALL libavcodec/dirac.h
INSTALL libavcodec/dv_profile.h
INSTALL libavcodec/dxva2.h
INSTALL libavcodec/jni.h
INSTALL libavcodec/mediacodec.h
INSTALL libavcodec/qsv.h
INSTALL libavcodec/vaapi.h
INSTALL libavcodec/vda.h
INSTALL libavcodec/vdpau.h
INSTALL libavcodec/version.h
INSTALL libavcodec/videotoolbox.h
INSTALL libavcodec/vorbis_parser.h
INSTALL libavcodec/xvmc.h
INSTALL libavcodec/libavcodec.pc
INSTALL libswresample/swresample.h
INSTALL libswresample/version.h
INSTALL libswresample/libswresample.pc
INSTALL libswscale/swscale.h
INSTALL libswscale/version.h
INSTALL libswscale/libswscale.pc
INSTALL libavutil/adler32.h
INSTALL libavutil/aes.h
INSTALL libavutil/aes_ctr.h
INSTALL libavutil/attributes.h
INSTALL libavutil/audio_fifo.h
INSTALL libavutil/avassert.h
INSTALL libavutil/avstring.h
INSTALL libavutil/avutil.h
INSTALL libavutil/base64.h
INSTALL libavutil/blowfish.h
INSTALL libavutil/bprint.h
INSTALL libavutil/bswap.h
INSTALL libavutil/buffer.h
INSTALL libavutil/cast5.h
INSTALL libavutil/camellia.h
INSTALL libavutil/channel_layout.h
INSTALL libavutil/common.h
INSTALL libavutil/cpu.h
INSTALL libavutil/crc.h
INSTALL libavutil/des.h
INSTALL libavutil/dict.h
INSTALL libavutil/display.h
INSTALL libavutil/downmix_info.h
INSTALL libavutil/error.h
INSTALL libavutil/eval.h
INSTALL libavutil/fifo.h
INSTALL libavutil/file.h
INSTALL libavutil/frame.h
INSTALL libavutil/hash.h
INSTALL libavutil/hmac.h
INSTALL libavutil/hwcontext.h
INSTALL libavutil/hwcontext_cuda.h
INSTALL libavutil/hwcontext_dxva2.h
INSTALL libavutil/hwcontext_qsv.h
INSTALL libavutil/hwcontext_vaapi.h
INSTALL libavutil/hwcontext_vdpau.h
INSTALL libavutil/imgutils.h
INSTALL libavutil/intfloat.h
INSTALL libavutil/intreadwrite.h
INSTALL libavutil/lfg.h
INSTALL libavutil/log.h
INSTALL libavutil/macros.h
INSTALL libavutil/mathematics.h
INSTALL libavutil/mastering_display_metadata.h
INSTALL libavutil/md5.h
INSTALL libavutil/mem.h
INSTALL libavutil/motion_vector.h
INSTALL libavutil/murmur3.h
INSTALL libavutil/opt.h
INSTALL libavutil/parseutils.h
INSTALL libavutil/pixdesc.h
INSTALL libavutil/pixelutils.h
INSTALL libavutil/pixfmt.h
INSTALL libavutil/random_seed.h
INSTALL libavutil/rc4.h
INSTALL libavutil/rational.h
INSTALL libavutil/replaygain.h
INSTALL libavutil/ripemd.h
INSTALL libavutil/samplefmt.h
INSTALL libavutil/sha.h
INSTALL libavutil/sha512.h
INSTALL libavutil/spherical.h
INSTALL libavutil/stereo3d.h
INSTALL libavutil/threadmessage.h
INSTALL libavutil/time.h
INSTALL libavutil/timecode.h
INSTALL libavutil/timestamp.h
INSTALL libavutil/tree.h
INSTALL libavutil/twofish.h
INSTALL libavutil/version.h
INSTALL libavutil/xtea.h
INSTALL libavutil/tea.h
INSTALL libavutil/lzo.h
INSTALL libavutil/avconfig.h
INSTALL libavutil/ffversion.h
INSTALL libavutil/libavutil.pc
Compilacion e instalacion de ffmpeg correcta
./compilar_ultrastar.sh: line 291: syntax error: unexpected end of file
pi@raspberrypi:~ $
Código: Seleccionar todo
#!/bin/bash
########################VARIABLES###############################
export ROJO="\033[1;31m"
export AZUL="\033[1;36m"
export VERDE="\033[1;32m"
export NEGRO="\033[0m"
INSTALAR_FFMPEG=s
INSTALAR_FREEPASCAL=s
################################################################
rm -Rf /tmp/*
ffmpeg -version
FFMPEG_INSTALADO=$?
fpc -iV
FREEPASCAL_INSTALADO=$?
cd /tmp/
echo -e "${AZUL}--------------------${NEGRO}"
echo -e "${AZUL}Descargando software${NEGRO}"
echo -e "${AZUL}--------------------${NEGRO}"
if [ $FFMPEG_INSTALADO -eq 0 ]
then
echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}"
echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
read INSTALAR_FFMPEG
case $INSTALAR_FFMPEG in
s)
wget http://ffmpeg.org/releases/
mv index.html /tmp/ffmpeg_versions
cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
read FFMPEG_VERSION
wget http://ffmpeg.org/releases/${FFMPEG_VERSION}
;;
*)
echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}"
;;
esac
else
wget http://ffmpeg.org/releases/
mv index.html /tmp/ffmpeg_versions
cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
read FFMPEG_VERSION
wget http://ffmpeg.org/releases/${FFMPEG_VERSION}
fi
if [ $FREEPASCAL_INSTALADO -eq 0 ]
then
echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal"
echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
read INSTALAR_FREEPASCAL
case $INSTALAR_FREEPASCAL in
s)
wget https://sourceforge.net/projects/freepascal/files/Source/
mv index.html /tmp/freepascal_versions
cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort
echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
read FREEPASCAL_VERSION
wget https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
;;
*)
echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}"
;;
esac
else
wget https://sourceforge.net/projects/freepascal/files/Source/
mv index.html /tmp/freepascal_versions
cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort
echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
read FREEPASCAL_VERSION
wget https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
fi
echo -e "${AZUL}------------------------------------------${NEGRO}"
echo -e "${AZUL}Descargando ULTRASTAR${NEGRO}"
echo -e "${AZUL}------------------------------------------${NEGRO}"
which ultrastardx
ULTRASTAR_INSTALADO=$?
case $ULTRASTAR_INSTALADO in
0)
echo -e "${ROJO}Ya hay una version de ultrastar instalada"
echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}"
read INSTALA_ULTRASTAR
;;
*)
INSTALA_ULTRASTAR=s
;;
esac
#if [ $INSTALA_ULTRASTAR == s ]
#then
echo -e "${AZUL}1) Version estable (Agosto 2017)"
echo -e "2) Ultima version (no estable)"
echo -e "3) Version diciembre 2016 (no estable)"
echo -e "Que version de Ultrastar quieres descargar?${NEGRO}"
read VERSION
case $VERSION in
2)
echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}"
cd /tmp
git clone https://github.com/UltraStar-Deluxe/USDX.git
;;
3)
echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}"
cd /tmp
git clone https://github.com/UltraStar-Deluxe/USDX.git
cd /tmp/USDX
git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
;;
*)
echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}"
cd /tmp
wget https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz
tar -zxvf v2017.8.0.tar.gz
mv USDX-2017.8.0 USDX
;;
esac
# cd /tmp
# git clone https://github.com/UltraStar-Deluxe/USDX.git
#
# echo -e "${AZUL}1) Continuar con la ultima version"
# echo -e "2) Volver a version de 2016"
# echo -e "Quieres continuar compilando la ultima version de ultrastar o volver a la version de diciembre de 2016?${NEGRO}"
# read OPCION
# case $OPCION in
# 1)
# echo -e "${VERDE}Continuamos con ultima version${NEGRO}"
# ;;
# 2)
# echo -e "${AZUL}Realizamos un rollback de los cambios al 4 de diciembre de 2016${NEGRO}"
# cd /tmp/USDX
# git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
# ;;
# *)
# echo -e "${VERDE}Continuamos con ultima version${NEGRO}"
# ;;
# esac
echo -e "${AZUL}Ya tenemos todos los datos necesarios. Pulsa ${ROJO}intro ${AZUL}para comenzar la instalación.${NEGRO}"
date
read TECLA
echo -e "${AZUL}--------------------${NEGRO}"
echo -e "${AZUL}Actualizando sistema${NEGRO}"
echo -e "${AZUL}--------------------${NEGRO}"
# sudo apt-get update
echo -e "${AZUL}----------------------${NEGRO}"
echo -e "${AZUL}Instalando dependencia${NEGRO}"
echo -e "${AZUL}----------------------${NEGRO}"
# sudo apt-get install libsdl2-dev libsdl2-2.0-0 libsdl2-gfx-1.0-0 libsdl2-gfx-dev libsdl2-image-2.0-0 libsdl2-image-dev libsdl2-mixer-2.0-0 libsdl2-mixer-dev libsdl2-net-2.0-0 libsdl2-net-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev automake fpc fpc-source portaudio19-dev liblua5.1-0 liblua5.1-0-dev libpng12-0 libpng12-dev libsqlite3-0 libsqlite3-dev git
# sudo apt-get install libsdl2-dev
# sudo apt-get install libsdl2-2.0-0
# sudo apt-get install libsdl2-gfx-1.0-0
# sudo apt-get install libsdl2-gfx-dev
# sudo apt-get install libsdl2-image-2.0-0
# sudo apt-get install libsdl2-image-dev
# sudo apt-get install libsdl2-mixer-2.0-0
# sudo apt-get install libsdl2-mixer-dev
# sudo apt-get install libsdl2-net-2.0-0
# sudo apt-get install libsdl2-net-dev
# sudo apt-get install libsdl2-ttf-2.0-0
# sudo apt-get install libsdl2-ttf-dev
# sudo apt-get install automake
# sudo apt-get install fpc
# sudo apt-get install fpc-source
# sudo apt-get install portaudio19-dev
# sudo apt-get install liblua5.1-0
# sudo apt-get install liblua5.1-0-dev
# sudo apt-get install libpng12-0
# sudo apt-get install libpng12-dev
# sudo apt-get install libsqlite3-0
# sudo apt-get install libsqlite3-dev
# sudo apt-get install git
# sudo aptitude install build-essential
echo -e "${AZUL}------------------------------------${NEGRO}"
echo -e "${AZUL}Descomprimiendo archivos descargados${NEGRO}"
echo -e "${AZUL}------------------------------------${NEGRO}"
case $INSTALAR_FFMPEG in
s)
cd /tmp
tar -zxvf ${FFMPEG_VERSION}
tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz
echo -e "${AZUL}------------------------------${NEGRO}"
echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}"
echo -e "${AZUL}------------------------------${NEGRO}"
FFMPEG_DIR=`echo ${FFMPEG_VERSION} | sed 's/.tar.gz//g'`
cd /tmp/${FFMPEG_DIR}
./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr
make -j4
sudo make install
VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'`
VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'`
if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
then
echo -e "${ROJO}Error en la compilación de ffmpeg"
echo -e "Version instalada ${VERSION_INSTALADA}"
echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
exit 1
else
echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}"
fi
;;
*)
echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}"
;;
esac
case $INSTALAR_FREEPASCAL in
s)
echo -e "${AZUL}----------------------------------${NEGRO}"
echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}"
echo -e "${AZUL}----------------------------------${NEGRO}"
# cd /tmp/fpcbuild-${FREEPASCAL_VERSION}
# make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build
# sudo make NOGDB=1 install
# sudo unlink /usr/bin/ppcarm
# sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION}
# sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm
# VERSION_INSTALADA=`fpc -iV`
# VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}`
# if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
# then
# echo -e "${ROJO}Error en la compilación de freepascal"
# echo -e "Version instalada ${VERSION_INSTALADA}"
# echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
# exit 1
# else
# echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}"
# fi
# ;;
# *)
# echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}"
# ;;
# esac
echo -e "${AZUL}---------------------------------${NEGRO}"
echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}"
echo -e "${AZUL}---------------------------------${NEGRO}"
cd /tmp/USDX
./autogen.sh
./configure --prefix=/usr
cd src
sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod
sed 's/LIBS ?=/LIBS ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2
mv Makefile Makefile.orig
mv Makefile.mod2 Makefile
sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so
sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so
make -j4
cd /tmp/USDX
sudo make install
#else
# echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}"
#fi
-
- Pi Omega
- Mensajes: 74
- Registrado: 28 Sep 2016, 12:43
- Agradecido: 0
- Agradecimiento recibido: 0
Me he esplicado como un libro cerrado, jejejeje.Fire_Fox escribió:No entiendo, lo conseguiste tras el error? o te sigue dando error?
Modifique el script como te he compartido en mi mensaje anterior y instalo mas cosas que antes, incluso el ffmpeg que antes nunca lo instalaba, pero el ultrastar no lo ha instalado.
Ahora pruebo con tu tutorial.
Lo que no se cambiar es la configuracion local, es importante?
- Fire_Fox
- Pi Omega
- Mensajes: 50
- Registrado: 26 Ago 2016, 11:41
- Agradecido: 0
- Agradecimiento recibido: 0
No eso es lo de menos, simplemente es la configuración de teclado y el idioma, si haces el que te mande ultimo debería de funcionar, ayer por la tarde hice una instalación limpia, siguiendo ese al pie de la letra.
-
- Pi Omega
- Mensajes: 74
- Registrado: 28 Sep 2016, 12:43
- Agradecido: 0
- Agradecimiento recibido: 0
Intento seguir tu tutorial @Fire_Fox y siempre se me queda aqui:
Código: Seleccionar todo
login as: pi
pi@192.168.1.108's password:
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Nov 28 18:16:15 2017
SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
pi@raspberrypi:~ $ sudo rpi-update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Performing self-update
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13403 100 13403 0 0 98325 0 --:--:-- --:--:-- --:--:-- 99281
*** Relaunching after update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** We're running for the first time
*** Backing up files (this will take a few minutes)
*** Backing up firmware
*** Backing up modules 4.9.41-v7+
#############################################################
This update bumps to rpi-4.9.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=167934
##############################################################
*** Downloading specific firmware revision (this will take a few minutes)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 168 0 168 0 0 287 0 --:--:-- --:--:-- --:--:-- 287
100 54.1M 100 54.1M 0 0 916k 0 0:01:00 0:01:00 --:--:-- 574k
*** Updating firmware
*** Updating kernel modules
*** depmod 4.9.65-v7+
*** depmod 4.9.65+
*** Updating VideoCore libraries
*** Using HardFP libraries
*** Updating SDK
*** Running ldconfig
*** Storing current firmware revision
*** Deleting downloaded files
*** Syncing changes to disk
*** If no errors appeared, your firmware was successfully updated to e4b56bb7efe47319e9478cfc577647e51c48e909
*** A reboot is needed to activate the new firmware
pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:3 http://mirrordirector.raspbian.org/raspbian stretch/non-free armhf Packages [95.2 kB]
0% [Connecting to archive.raspberrypi.org (2a00:1098:0:82:1000:13:0:6)]
- Fire_Fox
- Pi Omega
- Mensajes: 50
- Registrado: 26 Ago 2016, 11:41
- Agradecido: 0
- Agradecimiento recibido: 0
Despues de actualizar el firmware debes reiniciar te lo indica en el log, si se te queda parado ahi, comprueba la conexion o intentalo mas tarde, por que ahi es cuando descarga los paquetesGambo13 escribió:Intento seguir tu tutorial @Fire_Fox y siempre se me queda aqui:Código: Seleccionar todo
login as: pi pi@192.168.1.108's password: Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Nov 28 18:16:15 2017 SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password. pi@raspberrypi:~ $ sudo rpi-update *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom *** Performing self-update % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13403 100 13403 0 0 98325 0 --:--:-- --:--:-- --:--:-- 99281 *** Relaunching after update *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom *** We're running for the first time *** Backing up files (this will take a few minutes) *** Backing up firmware *** Backing up modules 4.9.41-v7+ ############################################################# This update bumps to rpi-4.9.y linux tree Be aware there could be compatibility issues with some drivers Discussion here: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=167934 ############################################################## *** Downloading specific firmware revision (this will take a few minutes) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 168 0 168 0 0 287 0 --:--:-- --:--:-- --:--:-- 287 100 54.1M 100 54.1M 0 0 916k 0 0:01:00 0:01:00 --:--:-- 574k *** Updating firmware *** Updating kernel modules *** depmod 4.9.65-v7+ *** depmod 4.9.65+ *** Updating VideoCore libraries *** Using HardFP libraries *** Updating SDK *** Running ldconfig *** Storing current firmware revision *** Deleting downloaded files *** Syncing changes to disk *** If no errors appeared, your firmware was successfully updated to e4b56bb7efe47319e9478cfc577647e51c48e909 *** A reboot is needed to activate the new firmware pi@raspberrypi:~ $ sudo apt-get update Get:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB] Get:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages [11.7 MB] Get:3 http://mirrordirector.raspbian.org/raspbian stretch/non-free armhf Packages [95.2 kB] 0% [Connecting to archive.raspberrypi.org (2a00:1098:0:82:1000:13:0:6)]
- CapNida
- Pi Omega
- Mensajes: 96
- Registrado: 01 Dic 2016, 09:43
- Agradecido: 1 vez
- Agradecimiento recibido: 1 vez
@Gambo13 Aqui va una nueva versión del script que te permite instalar por separado cada uno de los elementos. (Dependencias, ffmpeg, freepascal y ultrastar)
Prueba a ver si con este script puedes instalar el freepascal.
Prueba a ver si con este script puedes instalar el freepascal.
Código: Seleccionar todo
########################VARIABLES###############################
export ROJO="\033[1;31m"
export AZUL="\033[1;36m"
export VERDE="\033[1;32m"
export NEGRO="\033[0m"
INSTALAR_FFMPEG=s
INSTALAR_FREEPASCAL=s
################################################################
rm -Rf /tmp/*
clear
echo -e "${ROJO}------------------------${NEGRO}"
echo -e "${ROJO} MENU INSTALACION ${NEGRO}"
echo -e "${ROJO}------------------------${NEGRO}"
echo -e "${AZUL}1) Instalar dependencias${NEGRO}"
echo -e "${AZUL}2) Instalar ffmpeg${NEGRO}"
echo -e "${AZUL}3) Instalar freepascal${NEGRO}"
echo -e "${AZUL}4) Instalar ultrastar${NEGRO}"
echo -e "${AZUL}*) Salir${NEGRO}"
echo -e "${ROJO}Escoge una opcion:${NEGRO}"
read OPCION
case $OPCION in
1)
echo -e "${AZUL}--------------------${NEGRO}"
echo -e "${AZUL}Actualizando sistema${NEGRO}"
echo -e "${AZUL}--------------------${NEGRO}"
sudo apt-get update
echo -e "${AZUL}----------------------${NEGRO}"
echo -e "${AZUL}Instalando dependencia${NEGRO}"
echo -e "${AZUL}----------------------${NEGRO}"
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-2.0-0
sudo apt-get install libsdl2-gfx-1.0-0
sudo apt-get install libsdl2-gfx-dev
sudo apt-get install libsdl2-image-2.0-0
sudo apt-get install libsdl2-image-dev
sudo apt-get install libsdl2-mixer-2.0-0
sudo apt-get install libsdl2-mixer-dev
sudo apt-get install libsdl2-net-2.0-0
sudo apt-get install libsdl2-net-dev
sudo apt-get install libsdl2-ttf-2.0-0
sudo apt-get install libsdl2-ttf-dev
sudo apt-get install automake
sudo apt-get install fpc
sudo apt-get install fpc-source
sudo apt-get install portaudio19-dev
sudo apt-get install liblua5.1-0
sudo apt-get install liblua5.1-0-dev
sudo apt-get install libpng12-0
sudo apt-get install libpng12-dev
sudo apt-get install libsqlite3-0
sudo apt-get install libsqlite3-dev
sudo apt-get install git
sudo aptitude install build-essential
;;
2)
ffmpeg -version
FFMPEG_INSTALADO=$?
if [ $FFMPEG_INSTALADO -eq 0 ]
then
echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}"
echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
read INSTALAR_FFMPEG
case $INSTALAR_FFMPEG in
s)
wget -P /tmp/ http://ffmpeg.org/releases/
mv /tmp/index.html /tmp/ffmpeg_versions
cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
read FFMPEG_VERSION
cd /tmp/
wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION}
;;
*)
echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}"
;;
esac
else
wget -P /tmp/ http://ffmpeg.org/releases/
mv /tmp/index.html /tmp/ffmpeg_versions
cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
read FFMPEG_VERSION
wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION}
fi
case $INSTALAR_FFMPEG in
s)
cd /tmp
tar -zxvf ${FFMPEG_VERSION}
#tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz
echo -e "${AZUL}------------------------------${NEGRO}"
echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}"
echo -e "${AZUL}------------------------------${NEGRO}"
echo "Pulsa INTRO para continuar"
read TECLA
FFMPEG_DIR=`echo ${FFMPEG_VERSION} | sed 's/.tar.gz//g'`
cd /tmp/${FFMPEG_DIR}
./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr
make -j4
sudo make install
VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'`
VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'`
if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
then
echo -e "${ROJO}Error en la compilación de ffmpeg"
echo -e "Version instalada ${VERSION_INSTALADA}"
echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
exit 1
else
echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}"
fi
;;
*)
echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}"
;;
esac
;;
3)
fpc -iV
FREEPASCAL_INSTALADO=$?
if [ $FREEPASCAL_INSTALADO -eq 0 ]
then
echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal"
echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
read INSTALAR_FREEPASCAL
case $INSTALAR_FREEPASCAL in
s)
wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/
mv /tmp/index.html /tmp/freepascal_versions
cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort
echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
read FREEPASCAL_VERSION
wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
;;
*)
echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}"
;;
esac
else
wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/
mv /tmp/index.html /tmp/freepascal_versions
cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort
echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
read FREEPASCAL_VERSION
wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
cd /tmp/
tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz
fi
case $INSTALAR_FREEPASCAL in
s)
echo -e "${AZUL}----------------------------------${NEGRO}"
echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}"
echo -e "${AZUL}----------------------------------${NEGRO}"
echo "Pulsa INTRO para continuar"
read tecla
cd /tmp/fpcbuild-${FREEPASCAL_VERSION}
make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build
sudo make NOGDB=1 install
sudo unlink /usr/bin/ppcarm
sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION}
sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm
VERSION_INSTALADA=`fpc -iV`
VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}`
if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
then
echo -e "${ROJO}Error en la compilación de freepascal"
echo -e "Version instalada ${VERSION_INSTALADA}"
echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
exit 1
else
echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}"
fi
;;
*)
echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}"
;;
esac
;;
4)
which ultrastardx
ULTRASTAR_INSTALADO=$?
case $ULTRASTAR_INSTALADO in
0)
echo -e "${ROJO}Ya hay una version de ultrastar instalada"
echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}"
read INSTALA_ULTRASTAR
;;
*)
INSTALA_ULTRASTAR=s
;;
esac
#if [ $INSTALA_ULTRASTAR == s ]
#then
echo -e "${AZUL}1) Version estable (Agosto 2017)"
echo -e "2) Ultima version (no estable)"
echo -e "3) Version diciembre 2016 (no estable)"
echo -e "Que version de Ultrastar quieres descargar?"
read VERSION
case $VERSION in
2)
echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}"
cd /tmp
git clone https://github.com/UltraStar-Deluxe/USDX.git
;;
3)
echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}"
cd /tmp
git clone https://github.com/UltraStar-Deluxe/USDX.git
cd /tmp/USDX
git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
;;
*)
echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}"
cd /tmp
wget -P /tmp/ https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz
tar -zxvf v2017.8.0.tar.gz
mv USDX-2017.8.0 USDX
;;
esac
echo -e "${AZUL}---------------------------------${NEGRO}"
echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}"
echo -e "${AZUL}---------------------------------${NEGRO}"
echo -e "Pulsa INTRO para continuar"
read TECCLA
cd /tmp/USDX
./autogen.sh
./configure --prefix=/usr
cd src
sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod
sed 's/LIBS ?=/LIBS ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2
mv Makefile Makefile.orig
mv Makefile.mod2 Makefile
sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so
sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so
make -j4
cd /tmp/USDX
sudo make install
#else
# echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}"
#fi
;;
*)
echo -e "${ROJO}Saliendo${NEGRO}"
exit 1
;;
esac
Última edición por CapNida el 29 Nov 2017, 14:09, editado 1 vez en total.
-
- Pi Omega
- Mensajes: 74
- Registrado: 28 Sep 2016, 12:43
- Agradecido: 0
- Agradecimiento recibido: 0
Con este script, por lo que entiendo, solo instalo en la SD el raspbian, lo lanzo y ya instala todas las dependencias y todo?CapNida escribió:@Gambo13 Aqui va una nueva versión del script que te permite instalar por separado cada uno de los elementos. (Dependencias, ffmpeg, freepascal y ultrastar)
Prueba a ver si con este script puedes instalar el freepascal.Código: Seleccionar todo
########################VARIABLES############################### export ROJO="\033[1;31m" export AZUL="\033[1;36m" export VERDE="\033[1;32m" export NEGRO="\033[0m" INSTALAR_FFMPEG=s INSTALAR_FREEPASCAL=s ################################################################ rm -Rf /tmp/* clear echo -e "${ROJO}------------------------${NEGRO}" echo -e "${ROJO} MENU INSTALACION ${NEGRO}" echo -e "${ROJO}------------------------${NEGRO}" echo -e "${AZUL}1) Instalar dependencias${NEGRO}" echo -e "${AZUL}2) Instalar ffmpeg${NEGRO}" echo -e "${AZUL}3) Instalar freepasacal${NEGRO}" echo -e "${AZUL}4) Instalar ultrastar${NEGRO}" echo -e "${AZUL}*) Salir${NEGRO}" echo -e "${ROJO}Escoge una opcion:${NEGRO}" read OPCION case $OPCION in 1) echo -e "${AZUL}--------------------${NEGRO}" echo -e "${AZUL}Actualizando sistema${NEGRO}" echo -e "${AZUL}--------------------${NEGRO}" sudo apt-get update echo -e "${AZUL}----------------------${NEGRO}" echo -e "${AZUL}Instalando dependencia${NEGRO}" echo -e "${AZUL}----------------------${NEGRO}" sudo apt-get install libsdl2-dev sudo apt-get install libsdl2-2.0-0 sudo apt-get install libsdl2-gfx-1.0-0 sudo apt-get install libsdl2-gfx-dev sudo apt-get install libsdl2-image-2.0-0 sudo apt-get install libsdl2-image-dev sudo apt-get install libsdl2-mixer-2.0-0 sudo apt-get install libsdl2-mixer-dev sudo apt-get install libsdl2-net-2.0-0 sudo apt-get install libsdl2-net-dev sudo apt-get install libsdl2-ttf-2.0-0 sudo apt-get install libsdl2-ttf-dev sudo apt-get install automake sudo apt-get install fpc sudo apt-get install fpc-source sudo apt-get install portaudio19-dev sudo apt-get install liblua5.1-0 sudo apt-get install liblua5.1-0-dev sudo apt-get install libpng12-0 sudo apt-get install libpng12-dev sudo apt-get install libsqlite3-0 sudo apt-get install libsqlite3-dev sudo apt-get install git sudo aptitude install build-essential ;; 2) ffmpeg -version FFMPEG_INSTALADO=$? if [ $FFMPEG_INSTALADO -eq 0 ] then echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}" echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}" read INSTALAR_FFMPEG case $INSTALAR_FFMPEG in s) wget -P /tmp/ http://ffmpeg.org/releases/ mv /tmp/index.html /tmp/ffmpeg_versions cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}' echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}" read FFMPEG_VERSION cd /tmp/ wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION} ;; *) echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}" ;; esac else wget -P /tmp/ http://ffmpeg.org/releases/ mv /tmp/index.html /tmp/ffmpeg_versions cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}' echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}" read FFMPEG_VERSION wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION} fi case $INSTALAR_FFMPEG in s) cd /tmp tar -zxvf ${FFMPEG_VERSION} #tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz echo -e "${AZUL}------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}" echo -e "${AZUL}------------------------------${NEGRO}" echo "Pulsa INTRO para continuar" read TECLA FFMPEG_DIR=`echo ${FFMPEG_VERSION} | sed 's/.tar.gz//g'` cd /tmp/${FFMPEG_DIR} ./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr make -j4 sudo make install VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'` VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'` if [ $VERSION_INSTALADA != $VERSION_COMPILADA ] then echo -e "${ROJO}Error en la compilación de ffmpeg" echo -e "Version instalada ${VERSION_INSTALADA}" echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}" exit 1 else echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}" fi ;; *) echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}" ;; esac ;; 3) fpc -iV FREEPASCAL_INSTALADO=$? if [ $FREEPASCAL_INSTALADO -eq 0 ] then echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal" echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}" read INSTALAR_FREEPASCAL case $INSTALAR_FREEPASCAL in s) wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/ mv /tmp/index.html /tmp/freepascal_versions cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}" read FREEPASCAL_VERSION wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz ;; *) echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}" ;; esac else wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/ mv /tmp/index.html /tmp/freepascal_versions cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}" read FREEPASCAL_VERSION wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz cd /tmp/ tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz fi case $INSTALAR_FREEPASCAL in s) echo -e "${AZUL}----------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}" echo -e "${AZUL}----------------------------------${NEGRO}" echo "Pulsa INTRO para continuar" read tecla cd /tmp/fpcbuild-${FREEPASCAL_VERSION} make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build sudo make NOGDB=1 install sudo unlink /usr/bin/ppcarm sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION} sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm VERSION_INSTALADA=`fpc -iV` VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}` if [ $VERSION_INSTALADA != $VERSION_COMPILADA ] then echo -e "${ROJO}Error en la compilación de freepascal" echo -e "Version instalada ${VERSION_INSTALADA}" echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}" exit 1 else echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}" fi ;; *) echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}" ;; esac ;; 4) which ultrastardx ULTRASTAR_INSTALADO=$? case $ULTRASTAR_INSTALADO in 0) echo -e "${ROJO}Ya hay una version de ultrastar instalada" echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}" read INSTALA_ULTRASTAR ;; *) INSTALA_ULTRASTAR=s ;; esac #if [ $INSTALA_ULTRASTAR == s ] #then echo -e "${AZUL}1) Version estable (Agosto 2017)" echo -e "2) Ultima version (no estable)" echo -e "3) Version diciembre 2016 (no estable)" echo -e "Que version de Ultrastar quieres descargar?" read VERSION case $VERSION in 2) echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}" cd /tmp git clone https://github.com/UltraStar-Deluxe/USDX.git ;; 3) echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}" cd /tmp git clone https://github.com/UltraStar-Deluxe/USDX.git cd /tmp/USDX git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master` ;; *) echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}" cd /tmp wget -P /tmp/ https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz tar -zxvf v2017.8.0.tar.gz mv USDX-2017.8.0 USDX ;; esac echo -e "${AZUL}---------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}" echo -e "${AZUL}---------------------------------${NEGRO}" echo -e "Pulsa INTRO para continuar" read TECCLA cd /tmp/USDX ./autogen.sh ./configure --prefix=/usr cd src sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod sed 's/LIBS ?=/LIBS ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2 mv Makefile Makefile.orig mv Makefile.mod2 Makefile sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so make -j4 cd /tmp/USDX sudo make install #else # echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}" #fi ;; *) echo -e "${ROJO}Saliendo${NEGRO}" exit 1 ;; esac
- CapNida
- Pi Omega
- Mensajes: 96
- Registrado: 01 Dic 2016, 09:43
- Agradecido: 1 vez
- Agradecimiento recibido: 1 vez
El script te muestra un menú donde te permite instalar por separado cada cada una de las dependencias.
He visto en tus anteriores mensajes que no podías instalar el freepascal. Ejecuta esa parte las veces que haga falta y ve pegando los resultado. Así puedo ir depurando el scritp.
Código: Seleccionar todo
------------------------
MENU INSTALACION
------------------------
1) Instalar dependencias
2) Instalar ffmpeg
3) Instalar freepascal
4) Instalar ultrastar
*) Salir
Escoge una opcion:
-
- Pi Omega
- Mensajes: 74
- Registrado: 28 Sep 2016, 12:43
- Agradecido: 0
- Agradecimiento recibido: 0
Lo he instalado todo, me ha dicho despues de cada instalacion que todo estaba ok, pero sigue dando error.
Código: Seleccionar todo
---------------------------------
Compilando e instalando ULTRASTAR
---------------------------------
Pulsa INTRO para continuar
Updating build configuration files for USDX, please wait...
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking for fpc... no
checking for FPC... no
checking for ppc386... no
checking for ppc... no
checking for PPC386... no
checking for fpcmake... no
configure: error: no Free Pascal Compiler found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
sed: can't read Makefile: No such file or directory
mv: cannot stat 'Makefile': No such file or directory
unlink: cannot unlink '/lib/arm-linux-gnueabihf/libgcc_s.so': No such file or directory
make: *** No targets. Stop.
make: *** No rule to make target 'install'. Stop.
pi@raspberrypi:~ $
- CapNida
- Pi Omega
- Mensajes: 96
- Registrado: 01 Dic 2016, 09:43
- Agradecido: 1 vez
- Agradecimiento recibido: 1 vez
@Gambo13 Sigue sin estar instalado el freepascal
Pega la salida que obtienes cuando ejecutas la instalación de freepascal.
Código: Seleccionar todo
checking for fpc... no
checking for FPC... no
checking for ppc386... no
checking for ppc... no
checking for PPC386... no
checking for fpcmake... no
configure: error: no Free Pascal Compiler found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games