Using dpkg to install on Raspberry Pi
-
@gjacobse said in Using dpkg to install on Raspberry Pi:
@stacksofplates said in Using dpkg to install on Raspberry Pi:
Can you use gdebi?
yes
pi@raspberrypi:~ $ sudo gdebi --apt-line wspr_2.00r1714_i386.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done Failed to open the software package The package might be corrupted or you are not allowed to open the file. Check the permissions of the file.
I tried to run it with dpkg and it failed for me also, however it was a different error. They might have just packaged it badly.
-
@stacksofplates said in Using dpkg to install on Raspberry Pi:
@gjacobse said in Using dpkg to install on Raspberry Pi:
@stacksofplates said in Using dpkg to install on Raspberry Pi:
Can you use gdebi?
yes
pi@raspberrypi:~ $ sudo gdebi --apt-line wspr_2.00r1714_i386.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done Failed to open the software package The package might be corrupted or you are not allowed to open the file. Check the permissions of the file.
I tried to run it with dpkg and it failed for me also, however it was a different error. They might have just packaged it badly.
so may not be the nut behind the keyboard,...
-
Here's what I got:
jhooks@megatron:~/Downloads$ sudo gdebi wspr_2.00r1714_i386.deb [sudo] password for jhooks: Reading package lists... Done Building dependency tree Reading state information... Done Reading state information... Done This package is uninstallable Cannot install 'python-tk:i386'
-
Well there is another package available
pi@raspberrypi:~ $ wget http://physics.princeton.edu/pulsar/K1JT/wspr_2.11r2263_i386.deb --2016-10-26 19:51:40-- http://physics.princeton.edu/pulsar/K1JT/wspr_2.11r2263_i386.deb Resolving physics.princeton.edu (physics.princeton.edu)... 128.112.100.6 Connecting to physics.princeton.edu (physics.princeton.edu)|128.112.100.6|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 648034 (633K) [text/plain] Saving to: ‘wspr_2.11r2263_i386.deb’ wspr_2.11r2263_i386.deb 100%[============================================================>] 632.85K 322KB/s in 2.0s 2016-10-26 19:51:42 (322 KB/s) - ‘wspr_2.11r2263_i386.deb’ saved [648034/648034]
However:
pi@raspberrypi:~ $ sudo gdebi --apt-line wspr_2.11r2263_i386.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done This package is uninstallable Wrong architecture 'i386' pi@raspberrypi:~ $
-
Guess it's not meant to be for now. Meh,.. come back tomorrow and poke at it. I hear the TV calling.
-
@gjacobse said in Using dpkg to install on Raspberry Pi:
Trying to install the WSPR - Weak Signal Propagation Report software on the rPi3 and running into a small error.
pi@raspberrypi:~ $ sudo dpkg --instdir=. -i wspr_2.00r1714_i386.deb dpkg-deb: error: `wspr_2.00r1714_i386.deb' is not a debian format archive dpkg: error processing archive wspr_2.00r1714_i386.deb (--install): subprocess dpkg-deb --control returned error exit status 2 Errors were encountered while processing: wspr_2.00r1714_i386.deb
Pretty sure @scottalanmiller (or others) can spot the issue in a moment,.. but I'm not seeing it.
Downloading the package doesn't take long, as it's only about 2MB.
Are you sure you want to install an i386 package on armhf? I don't know the software, but it could be a native compiled binary for x86 as the name suggests. You can't run that directly on ARM (except for some emulation in between like QEMU).
Solution: Use an ARM version
-
@gjacobse said in Using dpkg to install on Raspberry Pi:
... Wrong architecture 'i386' ...
Oh, you already found the failure
-
@thwr said in Using dpkg to install on Raspberry Pi:
@gjacobse said in Using dpkg to install on Raspberry Pi:
... Wrong architecture 'i386' ...
Oh, you already found the failure
I glossed over that ha.
-
Okay so, not likely to get running-
Ah well.. It was a thought. It's not like I don't have several other options on running that software. Just thought it would be interesting to see what I could do with it... Part of the fun - Experimentation
-
According to this article you should be able to compile it for ARM pretty easily on the Pi.
-
@aidan_walsh said in Using dpkg to install on Raspberry Pi:
According to this article you should be able to compile it for ARM pretty easily on the Pi.
Had not found that yet....
Guess I know what I am doing for the next bit...well,.. in between trying to resolve a Windows 8.1 File Explorer issue on (gasp) another MS Surface.
-
My guess is that it didn't compile correctly:
pi@raspberrypi:~/wspr $ ./wspr Traceback (most recent call last): File "wspr.py", line 38, in <module> import Image, ImageTk, ImageDraw ImportError: No module named Image
-
Missing a dependency?
-
@aidan_walsh said in Using dpkg to install on Raspberry Pi:
Missing a dependency?
Sudo apt-get update
was run prior to starting
-
Didi you grab the branch the article refers to or the latest?
And
sudo apt-get install build-essential subversion python2.7-dev python-numpy python-imaging-tk python-pmw libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 python-dev hamlib-utils
?
-
Yes - that was done. Went line by line.
-
Going at it again... going line by line of this page:
http://wsprnet.org/drupal/node/5353
sudo apt-get update Get:1 http://archive.raspberrypi.org jessie InRelease [13.2 kB] Hit http://mirrordirector.raspbian.org jessie InRelease Hit http://mirrordirector.raspbian.org jessie/main armhf Packages Get:2 http://archive.raspberrypi.org jessie/main armhf Packages [106 kB] Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages Get:3 http://archive.raspberrypi.org jessie/ui armhf Packages [52.7 kB] Ign http://archive.raspberrypi.org jessie/main Translation-en_US Ign http://archive.raspberrypi.org jessie/main Translation-en Ign http://archive.raspberrypi.org jessie/ui Translation-en_US Ign http://archive.raspberrypi.org jessie/ui Translation-en Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US Ign http://mirrordirector.raspbian.org jessie/main Translation-en Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en Fetched 172 kB in 6s (25.0 kB/s) Reading package lists... Done
sudo apt-get install build-essential subversion python2.7-dev python-numpy python-imaging-tk python-pmw libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 python-dev hamlib-utils Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libhamlib-utils' instead of 'hamlib-utils' build-essential is already the newest version. cl-fftw3 is already the newest version. gfortran is already the newest version. libhamlib-utils is already the newest version. libportaudio2 is already the newest version. libsamplerate0-dev is already the newest version. portaudio19-dev is already the newest version. python-dev is already the newest version. python-imaging-tk is already the newest version. python-numpy is already the newest version. python-pmw is already the newest version. python2.7-dev is already the newest version. subversion is already the newest version. The following packages were automatically installed and are no longer required: libboost-atomic1.55.0 libboost-filesystem1.55.0 libboost-program-options1.55.0 libboost-regex1.55.0 libboost-thread1.55.0 libcwiid1 libjs-prettify libqscintilla2-11 libqscintilla2-l10n libqt4-network libqt4-xmlpatterns libqtwebkit4 libruby1.9.1 libruby1.9.1-dbg libruby2.1 libscsynth1 libtcl8.5 libtcltk-ruby1.9.1 libtk8.5 libyaml-0-2 ri1.9.1 ruby ruby1.9.1 ruby1.9.1-dev ruby1.9.1-examples ruby1.9.1-full ruby1.9.3 ruby2.1 rubygems-integration supercollider supercollider-common supercollider-ide supercollider-language supercollider-server supercollider-supernova tcl8.5 tk8.5 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 72 not upgraded.
Thus far nothing has changed or updated.
-
svn co svn://svn.code.sf.net/p/wsjt/wsjt/branches/wspr -r2840 A wspr/set.f A wspr/wfile5.f A wspr/wspr0_rx.f90 A wspr/geodist.f A wspr/cs_stubs.f90 A wspr/calibrate.f90 A wspr/WSPRcode.f90 A wspr/gocal A wspr/rx.f90 A wspr/WSPR.iss A wspr/start_threads.c A wspr/averms.f90 A wspr/ptt_unix.c A wspr/Wspr_Howto_MacOSX_10.6.html A wspr/Makefile.MinGW A wspr/hftoa.f90 A wspr/BUGS A wspr/configure.ac A wspr/libsamplerate.a A wspr/pa.lib A wspr/paterminate.f90 A wspr/win_stdint.h A wspr/db.f A wspr/getfile.f90 A wspr/hash.f90 A wspr/Makefile_10.6 A wspr/gofmt.bat A wspr/WSPR_Announcement.TXT A wspr/wspr_tr.in0 A wspr/thnix.f90 A wspr/supported_rigs.txt A wspr/setup.py A wspr/ptt.c A wspr/hamlib_rig_numbers A wspr/ccf.f90 A wspr/resample.c A wspr/sync162.f A wspr/wspr A wspr/libhamlib-2.dll A wspr/acom1.f90 A wspr/WsprModNoGui A wspr/WsprModNoGui/iq.py A wspr/WsprModNoGui/options.py A wspr/WsprModNoGui/__init__.py A wspr/WsprModNoGui/palettes.py A wspr/WsprModNoGui/hopping.py A wspr/WsprModNoGui/advanced.py A wspr/WsprModNoGui/g.py A wspr/calobs.f90 A wspr/fchisq.f A wspr/startrx.f90 A wspr/unpacktext2.f90 A wspr/f2py.py A wspr/packgrid.f A wspr/encode232.f A wspr/wspr1.f90 A wspr/giss.bat A wspr/deg2grid.f A wspr/sort.f A wspr/tkrep.py A wspr/g2.bat A wspr/wsprrc A wspr/libfftw3f_win.a A wspr/four2a.f A wspr/wspr.py A wspr/samplerate.h A wspr/wspr0_tx.f90 A wspr/read_wav.f90 A wspr/hamlib-tentec.dll A wspr/fil1.f90 A wspr/tx.f90 A wspr/packpfx.f90 A wspr/DFINC.MAK A wspr/gocal.bat A wspr/hamlib-yaesu.dll A wspr/xfft.f A wspr/packcall.f A wspr/libfftw3f.a A wspr/pack50.f A wspr/wspr_nogui.txt A wspr/wsprrc.win A wspr/packname.f90 A wspr/rh.bat A wspr/unpackname.f90 A wspr/azdist.f A wspr/wqdecode.f90 A wspr/rxtxcoord.f90 A wspr/0230.bat A wspr/qth.f90 A wspr/Makefile.CVF A wspr/DEB A wspr/unpackmept.f A wspr/decode162.f A wspr/fmeasure.f90 A wspr/starttx.f90 A wspr/spec162.f A wspr/afc2.f90 A wspr/getsound.c A wspr/unpackgrid.f A wspr/fcal.dat A wspr/libportaudio.a A wspr/fmtiq.f90 A wspr/aclocal.m4 A wspr/install-sh A wspr/t1.f90 A wspr/speciq.f90 A wspr/Makefile.in A wspr/nhash.c A wspr/wspr_nogui.py A wspr/ftn_quit.f90 A wspr/getutc.f90 A wspr/libpthreadGC2.a A wspr/ss.bat A wspr/inter_mept.f A wspr/padevsub.c A wspr/hamlib-icom.dll A wspr/portaudio.h A wspr/audiodev.f90 A wspr/pthreadGC2.dll A wspr/Hamlib.Rigs A wspr/unpackcall.f A wspr/wqencode.f90 A wspr/fcal.f90 A wspr/rigctl.exe A wspr/startdec.f90 A wspr/twkfreq.f A wspr/sched_w32.h A wspr/configure_10.6.ac A wspr/pthread_w32.h A wspr/peakup.f A wspr/mix162.f A wspr/fmtave.f90 A wspr/iqdemod.f90 A wspr/msgtrim.f90 A wspr/nchar.f A wspr/conv232.f A wspr/decode.f90 A wspr/hamlib-flexradio.dll A wspr/genwspr.f90 A wspr/WSPR_Quick_Start.TXT A wspr/0230 A wspr/chklevel.f90 A wspr/0215.bat A wspr/acom2.f90 A wspr/wsjt.ico A wspr/wspr_rxtest.f90 A wspr/write_wav.f90 A wspr/wspr0.f90 A wspr/phasetx.f90 A wspr/hamlib-kenwood.dll A wspr/wspr2.f90 A wspr/packprop.f90 A wspr/g1.bat A wspr/WSPR0_Instructions.TXT A wspr/clean.f90 A wspr/unpackprop.f90 A wspr/configure A wspr/mept162.f A wspr/user_hardware.py A wspr/genmept.f A wspr/fmt.f90 A wspr/gran.f90 A wspr/configure_10.6 A wspr/ffa.f90 A wspr/hamlib-kit.dll A wspr/WsprMod A wspr/WsprMod/specjt.py A wspr/WsprMod/iq.py A wspr/WsprMod/options.py A wspr/WsprMod/__init__.py A wspr/WsprMod/smeter.py A wspr/WsprMod/palettes.py A wspr/WsprMod/PmwColor.py A wspr/WsprMod/Pmw.py A wspr/WsprMod/hopping.py A wspr/WsprMod/PmwBlt.py A wspr/WsprMod/advanced.py A wspr/WsprMod/g.py A wspr/fthread.c A wspr/save A wspr/save/dummy A wspr/LICENSE.TXT A wspr/ccf2.f A wspr/xcor162.f90 A wspr/packtext2.f90 A wspr/pctile.f A wspr/gencwid.f A wspr/sound.c A wspr/libusb0.dll A wspr/unpack50.f A wspr/fftw3.f A wspr/wwv.f90 A wspr/four2.f A wspr/thnix_stub.f90 A wspr/gmtime2.c A wspr/getrms.f A wspr/fold1pps.f90 A wspr/rxtest.f90 A wspr/unpackpfx.f90 A wspr/flat3.f A wspr/fano232.f A wspr/ssort.f A wspr/ps162.f A wspr/playsound.c A wspr/user_hardware.bat A wspr/slope.f A wspr/thcvf.f90 A wspr/morse.f A wspr/grid2deg.f Checked out revision 2840.
-
./configure --with-portaudio-include-dir=/usr/include --with-portaudio-lib-dir=/usr/lib/arm-linux-gnueabihf checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o 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 for g77... no checking for xlf... no checking for f77... f77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether f77 accepts -g... yes ./configure: line 3074: test: =: unary operator expected checking uname -s... no checking for g95... no checking for gfortran... /usr/bin/gfortran *** gfortran compiler found at /usr/bin/gfortran *** No g95 compiler found checking for a v19 portaudio ... checking for Pa_GetVersion in -lportaudio... yes checking if gcc is Apple GCC... no checking for library containing strerror... none required checking for inline... inline checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking whether gcc needs -traditional... no checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking for rm... /bin/rm checking for cp... /bin/cp checking for mv... /bin/mv checking for ln... /bin/ln checking for sed... /bin/sed checking for ar... /usr/bin/ar checking for ld... /usr/bin/ld checking for test... /usr/bin/test checking for python... /usr/bin/python checking for f2py... /usr/bin/f2py checking OS... 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 for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking sys/syslog.h usability... yes checking sys/syslog.h presence... yes checking for sys/syslog.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking wait.h usability... yes checking wait.h presence... yes checking for wait.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for sys/resource.h... (cached) yes checking linux/ppdev.h usability... yes checking linux/ppdev.h presence... yes checking for linux/ppdev.h... yes checking dev/ppbus/ppi.h usability... no checking dev/ppbus/ppi.h presence... no checking for dev/ppbus/ppi.h... no checking for sys/stat.h... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking whether time.h and sys/time.h may both be included... yes checking samplerate.h usability... yes checking samplerate.h presence... yes checking for samplerate.h... yes checking whether string.h and strings.h may both be included... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes configure: creating ./config.status config.status: creating Makefile Using gfortran as fortran compiler. Compiling wspr 1.11 Installing into: /usr/local/
-
Force Hardware floating point processor to be used
Edit the Makefile with your favorite editor and ensure Line 5 reads asFFLAGS = -g -O2 -fno-range-check -ffixed-line-length-none -Wall -Wno-character-truncation -Wno-conversion -Wtabs -fPIC -mfloat-abi=hard
and Line 9 reads as
CFLAGS = -Wall -O0 -g -Wall -O0 -g -mfloat-abi=hard