raspberrypi / piserver

Raspberry Pi Server wizard to serve Raspbian to network booting Pis
318 stars 60 forks source link

pi4j not run: "UnsatisfiedLinkError: /tmp/libpi4j.so" #53

Closed kisChang closed 5 years ago

kisChang commented 5 years ago

I developed a student program using Pi4j and Java, but it can't run on piSever, and I get an error message: "UnsatisfiedLinkError: /tmp/libpi4j2288920775624554689.so: failed to map segment from shared object"

I found the reason for the error after searching, because /tmp mounts options containing 'noexec', I deleted it and the program works fine. For what reason added this 'noexec'? Can it be removed if it is not necessary?

maxnet commented 5 years ago

It is standard security practice on server and multi-user systems to make /tmp noexec, as it is the number one location used to install malware, and very few legitimate applications have a need to run executables there.

If security is not so important for your use-case, you can remove it.

kisChang commented 5 years ago

@maxnet ok, I got it, Thanks!