make test errors failed to map segment from shared object

I had to install a version of Storable 2.30 for a client on their server and was getting the following error

failed to map segment from shared object: Operation not permitted
Can't load '/tmp/del/Storable-2.30/blib/arch/auto/Storable/Storable.so' for module Storable: /tmp/del/Storable-2.30/blib/arch/auto/Storable/Storable.so: failed to map segment from shared object: Operation not permitted at

The error was due to the fact that I was trying to build and run the tests on a /tmp directory which had noexec enabled , moving to a different directory solved this issue

Leave a comment

About Kiran

user-pic I blog about Perl.