Difficulty compiling a file on openshift: /usr/bin/ld/: cannot find -lpython2.7

193 Views Asked by At

I recently put a simple web app on Openshift. Everything functions well on my local machine but when I run the application on Openshift I receive the error:

/usr/bin/ld: cannot find -lpython2.7

The app uses Nuitka and gnu++ to convert a python file to an executable. I'm assuming the location of python is different which is causing the problem. I've located Python in the Openshift app and attempted to create a symlink to /usr/bin/ld after logging into the app but I get the message "permission denied." Here is the error:

ln: creating symbolic link `/usr/lib/python2.7/python2.7': Permission denied

I believe creating a link would solve my issue but Openshift doesn't seem to like that idea. Is there a way to change permissions so that this will work? Or is there an alternative way to make a link or fix the issue?

0

There are 0 best solutions below