FHEM Forum

FHEM - Hausautomations-Systeme => Homematic => Thema gestartet von: Bigsonic1 am 17 August 2015, 16:53:05

Titel: srecord neuere Version installieren
Beitrag von: Bigsonic1 am 17 August 2015, 16:53:05
Hallo,
ich hoffe das ich hier im richtigen Forum schreibe.

Ich bin gerade dabei die Alternative Firmware auf dem Homematic HM-LC-Sw1PBU-FM zu flashen, und dafür müsste ich die neuste Version von srecord installieren. Ich hab die Version 1.58 die neuste ist die 1.64. Wie installiere ich die neuste Version?
Mit "apt-get install srecord" wird nur die Version 1.58 installiert.
Titel: Antw:srecord neuere Version installieren
Beitrag von: Mr. P am 17 August 2015, 21:08:53
Hej Bigsonic1,

du bist ungeduldig.
Am einfachsten, du löscht das installierte Package, ladest dir den aktuellen Source (https://sourceforge.net/projects/srecord/) herunter und baust dir die Files selbst.
Ist keine große Sache und dann bist du endlich am Ziel. ;-)
Titel: Antw:srecord neuere Version installieren
Beitrag von: Bigsonic1 am 17 August 2015, 23:18:41
Ich weiß..  ;)

Gelöscht hab ich das installierte Package den aktuellen Source hab ich auch geladen.
Aber wie baue ich mir jetzt srecord?
Hab es hiermit versucht:
wget http://sourceforge.net/projects/srecord/files/srecord/1.64/srecord-1.64.tar.gz
tar -xvf srecord-1.64.tar.gz
./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib
        --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
cd srecord-1.64
make
make install


dann kommt:
root@raspberrypi:~# cd srecord-1.64
root@raspberrypi:~/srecord-1.64# ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib

checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... no
checking for byacc... no
checking for ranlib... ranlib
checking for groff... groff
checking for gsoelim... no
checking for soelim... soelim
checking for snprintf... yes
checking for vsnprintf... yes
checking for main in -lgpg-error... no
checking if gcc accepts -Wall... yes
checking if gcc accepts -Wextra... yes
checking if gcc accepts -Wl,--as-needed... yes
checking boost/shared_ptr.hpp usability... yes
checking boost/shared_ptr.hpp presence... yes
checking for boost/shared_ptr.hpp... yes
checking for a Bourne shell which understands functions... /bin/sh
checking for sparse file lseek support... no
checking for gcrypt SHA224 support... no
checking for gcrypt SHA224 support... no
checking for gcrypt WHIRLPOOL support... no
checking for gcry_md_open in -lgcrypt... no
configure: error: in `/root/srecord-1.64':
configure: error: gcrypt test failed (--without-gcrypt to disable)
See `config.log' for more details
root@raspberrypi:~/srecord-1.64#         --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
-bash: --localstatedir=/var: Datei oder Verzeichnis nicht gefunden
root@raspberrypi:~/srecord-1.64# make
make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden.  Schluss.
root@raspberrypi:~/srecord-1.64# make install
make: *** No rule to make target 'install'.  Schluss.

Titel: Antw:srecord neuere Version installieren
Beitrag von: Mr. P am 18 August 2015, 09:36:49
Versuch es einmal mit:
apt-get install libgcrypt11
vor dem ./configure
Titel: Antw:srecord neuere Version installieren
Beitrag von: Bigsonic1 am 18 August 2015, 22:35:27
Hab es jetzt hingekriegt mit:
./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --without-gcrypt --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
da hat wohl: --without-gcrypt gefehlt.

konnte jetzt die eq3 Datei erzeugen...
Danke Schön für die Hilfe!!!
Titel: Antw:srecord neuere Version installieren
Beitrag von: Mr. P am 18 August 2015, 22:43:43
Zitat von: Bigsonic1 am 18 August 2015, 22:35:27
da hat wohl: --without-gcrypt gefehlt.
So rum gehts natürlich auch.
Na dann viel Spaß beim Flashen und Rumspielen. ;-)
Titel: Antw:srecord neuere Version installieren
Beitrag von: Bigsonic1 am 18 August 2015, 23:28:38
Danke kann jetzt endlich Flashen, hoffentlich kriege ich es hin.  ;)

apt-get install libgcrypt11
Damit hab ich es vorher probiert, aber er sagte, das das Paket schon installiert wäre.