Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2023 linux bash launcher bug with LD_LIBRARY_PATH

2 REPLIES 2
Reply
Message 1 of 3
johan8CZ8M
342 Views, 2 Replies

2023 linux bash launcher bug with LD_LIBRARY_PATH

2023 launcher (bin/2023) is not checking LD_LIBRARY_PATH variable correctly:

if [[ -z `whereis libssl.so.1.1|grep /` ]] ; then
    if [ ! ${LD_LIBRARY_PATH+x} ]; then
        LD_LIBRARY_PATH="$MAYA_LOCATION/lib/openssl:$LD_LIBRARY_PATH"
    else
        LD_LIBRARY_PATH="$MAYA_LOCATION/lib/openssl"
    fi
fi

Guessing it's missing -z for LD_LIBRARY_PATH check?

Should be:

if [[ -z `whereis libssl.so.1.1|grep /` ]] ; then
    if [ ! -z ${LD_LIBRARY_PATH+x} ]; then
        LD_LIBRARY_PATH="$MAYA_LOCATION/lib/openssl:$LD_LIBRARY_PATH"
    else
        LD_LIBRARY_PATH="$MAYA_LOCATION/lib/openssl"
    fi
fi

 

 

2 REPLIES 2
Message 2 of 3

Good catch! This was causing so much trouble for us. We were not able to import some of the Python libraries as *.so files were misign resulting our tools and plugins breaking. Basically it was removing everything from the $LD_LIBRARY_PATH variable and setting some Maya internal paths no matter what. Adding the -z flag in the launcher file solved the issue for us.

Message 3 of 3
KernAttila
in reply to: johan8CZ8M

Thank you for spotting this !

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report