×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

ev.h missing from astroberry

  • Posts: 132
  • Thank you received: 9
Seems like ev.h is missing from astroberry:

root@raspberrypi:/usr# find /usr/include | grep "ev.h"
/usr/include/xen/gntdev.h
/usr/include/boost/math/special_functions/chebyshev.hpp
/usr/include/linux/ppdev.h
/usr/include/linux/spi/spidev.h
/usr/include/linux/remoteproc_cdev.h
/usr/include/linux/psp-sev.h
/usr/include/linux/netfilter/xt_physdev.h
/usr/include/linux/i2c-dev.h
/usr/include/linux/atmdev.h
/usr/include/linux/firewire-cdev.h
/usr/include/linux/v4l2-subdev.h
/usr/include/linux/vfio_zdev.h
/usr/include/linux/i2o-dev.h
/usr/include/linux/rio_mport_cdev.h
/usr/include/linux/hiddev.h
/usr/include/linux/rio_cm_cdev.h
/usr/include/gsl/gsl_chebyshev.h
/usr/include/KF5/KArchive/kfilterdev.h

packages libev4, libevdev2 libevent-2.1-6 are all installed
1 year 9 months ago #83796
The topic has been locked.
  • Posts: 111
  • Thank you received: 41
The header file is in package libev-dev (on Debian bullseye, and probably also in earlier Debian versions)
[tstibor@apollo ~]$ apt-file search /usr/include/ev.h
libev-dev: /usr/include/ev.h
1 year 9 months ago #83797
The topic has been locked.
  • Posts: 132
  • Thank you received: 9
That package doesn't seem to be in the repo.

root@raspberrypi:/usr# apt-get install libev-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libev-dev
1 year 9 months ago #83798
The topic has been locked.
  • Posts: 132
  • Thank you received: 9
That package doesn't seem to be in the repo.

root@raspberrypi:/usr# apt-get install libev-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libev-dev
1 year 9 months ago #83799
The topic has been locked.
  • Posts: 132
  • Thank you received: 9
That package doesn't seem to be in the repo.

root@raspberrypi:/usr# apt-get install libev-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libev-dev
1 year 9 months ago #83800
The topic has been locked.
  • Posts: 132
  • Thank you received: 9
Sorry for all the repeated replies!
1 year 9 months ago #83801
The topic has been locked.
  • Posts: 111
  • Thank you received: 41
What Debian version are you running?
[tstibor@apollo ~]$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye
1 year 9 months ago #83802
The topic has been locked.
  • Posts: 132
  • Thank you received: 9
I'm on astroberry. lsb_release is showing rasbian though...

lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
1 year 9 months ago #83803
The topic has been locked.
  • Posts: 111
  • Thank you received: 41
Hmm that is strange. I just booted by RPi and checked the version and installed it without any problems:
[indi@indiberry ~]$ lsb_release -a && apt info libev-dev && sudo apt install -y libev-dev
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
Package: libev-dev
Version: 1:4.25-1
Priority: optional
Section: libdevel
Source: libev
Maintainer: Boyuan Yang <byang@debian.org>
Installed-Size: 214 kB
Depends: libev4 (= 1:4.25-1)
Homepage: http://software.schmorp.de/pkg/libev.html
Download-Size: 125 kB
APT-Sources: http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
Description: static library, header files, and docs for libev
 Static library, header files, and documentation for libev.
 .
 libev provides a full-featured and high-performance event loop that is
 loosely modelled after libevent. It includes relative timers, absolute
 timers with customized rescheduling, synchronous signals, process status
 change events, event watchers dealing with the event loop itself, file
 watchers, and even limited support for fork events. It uses a priority
 queue to manage timers and uses arrays as fundamental data structure. It
 has no artificial limitations on the number of watchers waiting for the
 same event.
 .
 libev supports select, poll, epoll, kqueue, and inotify.
 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libev4
The following NEW packages will be installed:
  libev-dev libev4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 160 kB of archives.
After this operation, 292 kB of additional disk space will be used.
Get:1 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf libev4 armhf 1:4.25-1 [34.5 kB]
Get:2 http://mirror.de.leaseweb.net/raspbian/raspbian buster/main armhf libev-dev armhf 1:4.25-1 [125 kB]
Fetched 160 kB in 0s (357 kB/s)
Selecting previously unselected package libev4:armhf.
(Reading database ... 289593 files and directories currently installed.)
Preparing to unpack .../libev4_1%3a4.25-1_armhf.deb ...
Unpacking libev4:armhf (1:4.25-1) ...
Selecting previously unselected package libev-dev.
Preparing to unpack .../libev-dev_1%3a4.25-1_armhf.deb ...
Unpacking libev-dev (1:4.25-1) ...
Setting up libev4:armhf (1:4.25-1) ...
Setting up libev-dev (1:4.25-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpt2+rpi1) ...
[indi@indiberry ~]$

So probably the most simplest solution is to download that directly from one of the Debian mirror and install the package by hand:
packages.debian.org/buster/libev-dev
packages.debian.org/buster/armhf/libev-dev/filelist

So e.g.
wget http://ftp.cz.debian.org/debian/pool/main/libe/libev/libev-dev_4.25-1_armhf.deb && sudo dpkg --install ./libev-dev_4.25-1_armhf.deb
1 year 9 months ago #83804
The topic has been locked.
  • Posts: 132
  • Thank you received: 9
Thanks, that did the trick. Strange though...
1 year 9 months ago #83821
The topic has been locked.
Time to create page: 0.288 seconds