leetronics / infnoise

The world's easiest TRNG to get right
Creative Commons Zero v1.0 Universal
122 stars 25 forks source link

Issues with 'make install' #29

Open kg4zow opened 1 year ago

kg4zow commented 1 year ago

I tried installing the .deb package from the apt repo, the software didn't work because it was apparently built with a newer glibc than what comes with Debian 11. Not sure if this means something needs to be updated in the apt repo or not.

Cloned the code and did make -f Makefile.linux infnoise to compile the software, then sudo make -f Makefile.linux install to install everything. This almost worked, but it installed the udev file under /usr/local/lib/udev/rules.d/, which is not where the system checks when hardware is inserted or removed.

I ended up having to do cd /usr/lib/udev/rules.d ; ln -s /usr/local/lib/udev/rules.d/75-infnoise.rules . to create a symlink, so the system would see the file and start the service automatically. I've never heard of a system looking for udev files under /usr/local/ before ... maybe that install line in Makefile.linux should not be using $(PREFIX), and instead have /usr/lib/udev/rules.d/ hard-coded?

lonzo54 commented 1 year ago

I tried installing the .deb package from the apt repo, the software didn't work because it was apparently built with a newer glibc than what comes with Debian 11. Not sure if this means something needs to be updated in the apt repo or not.

Cloned the code and did make -f Makefile.linux infnoise to compile the software, then sudo make -f Makefile.linux install to install everything. This almost worked, but it installed the udev file under /usr/local/lib/udev/rules.d/, which is not where the system checks when hardware is inserted or removed.

I ended up having to do cd /usr/lib/udev/rules.d ; ln -s /usr/local/lib/udev/rules.d/75-infnoise.rules . to create a symlink, so the system would see the file and start the service automatically. I've never heard of a system looking for udev files under /usr/local/ before ... maybe that install line in Makefile.linux should not be using $(PREFIX), and instead have /usr/lib/udev/rules.d/ hard-coded?

kg4zow...thank you very much for the post! I was rapidly running out of hair to pull out from this issue!