Maya, ubuntu 19.04, the libpng12 issue and me going MAD

Question

Hi folks, well it cant ever be easy can it? I need some help. I’m trying to install Maya on ubuntu 19.04 but i’m having a heck of a time with libpng12. I read this thread  https://support.linuxhint.com/question/maya-2019-ubuntu-19-04-guide-libpng/  where they seem to figure the issue out but i’m very new to linux so im having trouble following along.

 

I seems 19.04 hates libpng12 with a passion, so you have to uncompress the DEB file manually, then copy it over manually to force 19.04 into submission. So, how does one manually decompress a DEB file?

Thanks!

solved 0
, PencilTester 5 months 12 Answers 282 views

Answers ( 12 )

  1. Hi PencilTester,

    extracting a DEB file is really easy. Just download the libpng DEB file and open it with Archive Manager on Ubuntu. Then, you can just drag and drop the libpng12.so file from the DEB file on your $HOME directory or any directory (must have write permission) you want. Once that’s done, copy or move the file to the correct location.

    I hope it helps.

     

    Good luck.

    Shahriar Shovon

     

    Best answer
    • Hey thanks a bunch! I was wondering if you might clear up a few other questions I have on the process the two of you discussed in the other thread?

      The two of you discuss copying over libpng12.so.0 to /usr/lib/x86_64-linux-gnu/ directory.

      I’m seeing different files with the same name within the Data.tar.  One under ‘lib/ x86_64-linux-gnu’ and another under ‘usr/lib/ x86_64-linux-gnu’ .

      Which do i copy over to my systems /usr/lib/x86_64-linux-gnu/ directory?

      Sorry for the need of such detailed help. I installed maya on 18.04 with no issues but this seems a bit more involved for 19.04.

      Thanks again.

    • Thanks again. I must of somehow copy pasted incorrectly from the instructions, stupid mistake.

      Now im running into this when trying to convert to rpm to deb.

      sudo alien -cv *.rpm
      LANG=C rpm -qp –queryformat %{NAME} ‘adlmapps14-14.0.23-0.x86_64.rpm’
      sh: 1: rpm: not found
      Error executing “LANG=C rpm -qp –queryformat %{NAME} ‘adlmapps14-14.0.23-0.x86_64.rpm'”: at /usr/share/perl5/Alien/Package.pm line 489.

       

      A bad download of the rpm package?

  2. Alrighty the battle continues. Believe it or not im learning a lot just researching and working with this problem.

    So I tried to set up all the symbolic links to said libraries. Im getting these errors. I have done some searching for answers but im still too new to linux to have much confidence.

    nimator@workstation:~/Downloads/Maya2019$ sudo ln -s /usr/lib/x86_64-linux-gnu/libtbb.so /usr/lib/x86_64-linux-gnu/
    ln: failed to create symbolic link ‘/usr/lib/x86_64-linux-gnu/libtbb.so’: File exists
    animator@workstation:~/Downloads/Maya2019$ sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/libtiff.so.3
    animator@workstation:~/Downloads/Maya2019$ sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/autodesk/
    animator@workstation:~/Downloads/Maya2019$ sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/autodesk/
    ln: failed to create symbolic link ‘/usr/autodesk/libcrypto.so.1.1’: File exists
    animator@workstation:~/Downloads/Maya2019$ sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/
    ln: failed to create symbolic link ‘/usr/lib/x86_64-linux-gnu/libssl.so.1.1’: File exists
    animator@workstation:~/Downloads/Maya2019$ sudo ln -s /usr/lib/x86_64-linux-gnu/libpcre16.so.3 /usr/lib/x86_64-linux-gnu/
    ln: failed to create symbolic link ‘/usr/lib/x86_64-linux-gnu/libpcre16.so.3’: File exists
    animator@workstation:~/Downloads/Maya2019$ sudo ln -s /usr/lib64/libpng15.so.15 /usr/lib/x86_64-linux-gnu/libpng15.so.15
    animator@workstation:~/Downloads/Maya2019$ sudo ln -s /usr/lib64/libpng12.so.0 /usr/lib/x86_64-linux-gnu/libpng12.so.0

     

    Getting a lot of “file exists”. Not sure what to do.

    Thanks again for all the help for this newbie.

     

     

    • Hi PencilTester,

      You have already linked the library files. You can continue even if you get file exists message. It should work.

      But, if you still want to link the library files, use the -f option along with the -s option.

      For example, the command

      $ sudo ln -s /usr/lib/x86_64-linux-gnu/libtbb.so /usr/lib/x86_64-linux-gnu/

      should be replaced by:

      $ sudo ln -sf /usr/lib/x86_64-linux-gnu/libtbb.so /usr/lib/x86_64-linux-gnu/

       

      Happy learning.

      • Thanks 🙂

        You have been a big help! I hope they are paying you well.

        Also if anyone gets an error when trying to bring up the radial menu on right click, here is the answer. https://forums.autodesk.com/t5/maya-forum/can-t-use-right-click-radial-menus/td-p/6839305

         

        “Maybe I’ve found a way to work around this issue… It worked for me here.
        I’m currently using Maya 2017 on a Ubuntu 18.04 LTS machine.. basically I opened the contentXGenToolsMM.mel file, which is located at : /usr/autodesk/maya2017/scripts/others/contextXGenToolsMM.mel and comment out few lines of code where the getGroomingToolIndex() is called and its return value is tested, inside the global function contextXGenToolsMM():

        global proc int contextXGenToolsMM(string $parent)
        {
        ….

        //int $index = getGroomingToolIndex();
        //if($index == -1)
        //{
        // return 0;
        //}

        ….

        }

        Save the file, and that’s it..”

Leave an answer