Martwana
Posts: 30
Joined: Sun Dec 16, 2012 1:12 pm

Pi4J hard float dpkg issue

Mon Dec 24, 2012 3:01 am

Hello,

I've moved to the hard float image of wheezy to install the jdk8.
Following the savage automate tutorial, jdk8 installed fine.

When I hen try to install pi4j, the instructions on the site do not work.

wget ..... .deb - OK downloads package
sudo dpkg -i pi4j....deb - outputs no error, BUT doesn't extract/unpack anything.

Pi4J site says it unpacks to /opt/pi4j/, but there's nothing there, therefor when I compile and run a java app, it fails, and cannot find the pi4j files.

This is a freshly installed version of wheezy and jdk8, no other things have been changed on my pi except apt-get upgrade, which didnt change much

Anyone any ideas?

User avatar
savageautomate
Posts: 225
Joined: Thu Aug 16, 2012 3:20 pm
Location: USA
Contact: Website

Re: Pi4J hard float dpkg issue

Tue Dec 25, 2012 2:51 pm

I am not familiar with how to debug "dpkg", but you can also just download the .zip package and create the directory manually and unpack the zip. Just make sure to grab 0.0.5-SNAPSHOT for supporting Oracle JDK SE 8.
Robert Savage | Follow me @savageautomate
http://www.pi4j.com | http://www.pislices.com
http://www.savagehomeautomation.com

User avatar
savageautomate
Posts: 225
Joined: Thu Aug 16, 2012 3:20 pm
Location: USA
Contact: Website

Re: Pi4J hard float dpkg issue

Sun Dec 30, 2012 5:34 pm

savageautomate wrote:I am not familiar with how to debug "dpkg", but you can also just download the .zip package and create the directory manually and unpack the zip. Just make sure to grab 0.0.5-SNAPSHOT for supporting Oracle JDK SE 8.
I encountered a similar issue today where I could not install a Pi4J .deb package on one of my older Pis. The problem was that Pi4J was not uninstalling cleanly due to a removal script failure.

I was able to use these commands to force the uninstall.

Code: Select all

sudo rm /var/lib/dpkg/info/pi4j.prerm
sudo rm /var/lib/dpkg/info/pi4j.postrm
sudo dpkg --remove --force-remove-reinstreq pi4j
sudo rm -r /opt/pi4j
After this, I was able to install a new Pi4J .deb package using the instructions here:
http://pi4j.com/install.html
Robert Savage | Follow me @savageautomate
http://www.pi4j.com | http://www.pislices.com
http://www.savagehomeautomation.com

Return to “Java”