×

INDI Library v1.9.8 Released (29 Sep 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

ev.h missing from astroberry

  • Posts: 98
  • Thank you received: 3
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
5 months 1 day ago #83796
The topic has been locked.
  • Posts: 88
  • Thank you received: 31
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
5 months 1 day ago #83797
The topic has been locked.
  • Posts: 98
  • Thank you received: 3
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
5 months 1 day ago #83798
The topic has been locked.
  • Posts: 98
  • Thank you received: 3
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
5 months 1 day ago #83799
The topic has been locked.
  • Posts: 98
  • Thank you received: 3
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
5 months 1 day ago #83800
The topic has been locked.
  • Posts: 98
  • Thank you received: 3
Sorry for all the repeated replies!
5 months 1 day ago #83801
The topic has been locked.
  • Posts: 88
  • Thank you received: 31
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
5 months 1 day ago #83802
The topic has been locked.
  • Posts: 98
  • Thank you received: 3
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
5 months 1 day ago #83803
The topic has been locked.
  • Posts: 88
  • Thank you received: 31
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
5 months 1 day ago #83804
The topic has been locked.
  • Posts: 98
  • Thank you received: 3
Thanks, that did the trick. Strange though...
5 months 1 day ago #83821
The topic has been locked.
Time to create page: 0.366 seconds