joan2937 / piscope

A logic analyser (digital waveform viewer)
The Unlicense
53 stars 15 forks source link

./piscope: No such file or directory on Raspi 4 with Ubuntu 22.04 LTS #11

Open Genozen opened 1 year ago

Genozen commented 1 year ago

Hello, this looks like a great library for someone who doesn't have any scopes available.

I'm trying it out with my Raspi 4 8GB with Ubuntu 22.04 LTS.

I've run the followings:

wget abyz.me.uk/rpi/pigpio/piscope.tar
tar xvf piscope.tar
cd PISCOPE
make hf
make install

but when I do ./piscope on the terminal, it says no such file or directory, even though I can see it present in the PISCOPE folder.

All installations were successful...

any idea how to solve this matter?

Also, the sudo gpiod works for me when running the checks sudo ./x_pigpio

joan2937 commented 1 year ago

Use the command piscope rather than ./piscope.

guymcswain commented 1 year ago

I hope this might help someone else:

Similar to the OP, I tried to install the pre-built image of piscope on a Pi4 but running RaspberryPi 64-bit OS (cat /etc/debian_version 11.7). As OP stated, make install resulted in "no such file or directory". Perhaps this is a linker/loader issue since Pi4 is not armhf?

Then I tried building from source as described in All machines (building from source) but

sudo apt-get install gtk+-3.0

fails with

E: Unable to locate package gtk+-3.0
E: Couldn't find any package by glob 'gtk+-3.0'

After some brief research I found this will work:

sudo apt install libgtk-3-dev

I'm up and running piscope now and it has brought me happiness since my oscilloscope recently bit the dust.

lxne commented 1 year ago

Hi, I had the same issue on a raspberry pi 4 with latest bullseye 64bit.

When I tried piscope & I got…

[1] 13412
pi@raspberrypi:~ $ bash: /usr/local/bin/piscope: No such file or directory

The number increased with each try.

When I tried /usr/local/bin/piscope the response was… bash: /usr/local/bin/piscope: No such file or directory

After reading guymcswain's post here I tried…

sudo apt install libgtk-3-dev
cd ~/PISCOPE
make
make install

piscope now works as expected.

PS: I just realized that the increasing number is the process id. So if piscope is running you can easily kill it from the terminal.