[SOLVED] Autodesk Maya on linux Mint

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
mirkoj

[SOLVED] Autodesk Maya on linux Mint

Post by mirkoj »

Edit:
Managed to get all up and running. Thanks, everyone for inputs:
This should work perfectly fine. Attaching this missing lib as well.
Maybe someone has a better way instead of using synaptic manager to install this "libpcre16-3"
Other than that everything should be straight forward. Hope it helps.

download libpng15.zip
https://drive.google.com/open?id=1A4KeQ ... rFqQ491SC8

If you want to enable a list of latest nvidia drivers in Driver Manager:

$ sudo add-apt-repository ppa:graphics-drivers/ppa



Maya 2019 install for Mint19.1:

$ echo 'deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse' | sudo tee /etc/apt/sources.list.d/xenial.list
$ sudo apt-get update
$ sudo apt-get install -y libtbb-dev libtiff5-dev libssl-dev libpng12-dev libssl1.0.0 gcc libjpeg62
$ sudo apt-get install -y alien elfutils
$ sudo apt-get install -y libaudiofile-dev libgstreamer-plugins-base0.10-0
$ sudo apt-get install -y libglw1-mesa libglw1-mesa-dev mesa-utils
$ sudo apt-get install -y xfonts-100dpi xfonts-75dpi ttf-mscorefonts-installer fonts-liberation
$ sudo apt-get install -y csh tcsh libfam0 libfam-dev xfstt
$ cd /tmp
$ wget http://launchpadlibrarian.net/183708483 ... _amd64.deb
$ sudo dpkg -i libxp6_1.0.2-2_amd64.deb

$ cd ~/Downloads
$ wget https://trial2.autodesk.com/NetSWDLD/20 ... _64bit.tgz
$ mkdir maya2019Installer
$ tar xvzf Autodesk_Maya_2019_Linux_64bit.tgz -C maya2019Installer
$ cd maya2019Installer/
sudo alien -cv *.rpm
$ sudo dpkg -i *.deb
$ echo "int main (void) {return 0;}" > mayainstall.c
$ gcc mayainstall.c
$ sudo cp -v a.out /usr/bin/rpm
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libtbb.so /usr/lib/x86_64-linux-gnu/libtbb_preview.so.2
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/libtiff.so.3
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/autodesk/maya2019/lib/libssl.so.10
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/autodesk/maya2019/lib/libcrypto.so.10
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/autodesk/maya2019/lib/libGL.so
$ sudo ln -sf /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/autodesk/maya2019/lib/libssl.so.10
$ chmod +x setup
$ sudo ./setup

$ sudo mkdir -p /usr/tmp
$ sudo chmod 777 /usr/tmp
$ mkdir -p ~/maya/2019 ~/maya/2019/syncColor/Shared
$ echo "MAYA_DISABLE_CIP=1" >> ~/maya/2019/Maya.en
$ echo "LC_ALL=C" >> ~/maya/2019/Maya.env
$ chmod -Rfv 777 ~/maya
$ xset +fp /usr/share/fonts/X11/100dpi/
$ xset +fp /usr/share/fonts/X11/75dpi/
$ xset fp rehash
$ gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>"
$ sudo rm -v /usr/bin/rpm
$ sudo mv -v /usr/bin/rpm_backup /usr/bin/rpm

put libpng15.zip from drive download link in ~/Downloads
unzip -x ~/Downloads/libpng15.zip
cd ~/Downloads/libpng15
$ sudo cp ./libpng* /usr/autodesk/maya2019/lib

$ sudo apt install libpcre16-3
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libpcre16.so.3 /usr/autodesk/maya2019/lib/libpcre16.so.0

$ ./usr/autodesk/maya2019/bin/maya.bin
Last edited by mirkoj on Mon Apr 01, 2019 4:41 pm, edited 4 times in total.
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: Autodesk Maya on linux Mint

Post by xenopeek »

Obviously majority of people won't be using Maya; it's a very specialist program. Looking at a guide like https://linuxhint.com/install_autodesk_ ... untu_1804/ it shows it to be a very error prone process, which is a given when trying to run software packaged for one OS on another.

Start by sharing which guide specifically you're following. Share the link. Detail which steps you've successfully completed and which you've done but are giving errors. Share what errors you're getting.

It's not going to be simple. I'd guess you're looking at spending one to three hours on it, depending on how much work to backtrack and fix where it went wrong and on what your internet and system speed are.
Image
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

Well I figured.. after 20+ years with computers and all.. how the hell can it be difficult if you follow recipe that so many guys made.
Was so wrong :)
Also wanted to save time to other trying to get as lon as possible on my own but hit the wall.
Last attempt tried asking on some forums, got some parts sorted out, bunch of those script lines well full of typo erros by those who made them which simply complicates stuff.

Basically my last idea is to find one soul that actually made through that hell and got it working and care to help and put together proper guide.
Autodesk support ofc doesn't care at all, you have supported OS the rest of you fu.. but they are all about fu to customers anyway so didn't expect more from them at all...
Also in my home region there is no one that I can even get hire and bring here to help so..

Anyway I can try again start here with script by script and maybe with enough people on it with a bit of extra time this could grow to a single properly put how to do it guide :) Or at lesat clean up some stupid issues like you are missing this .so or something, then I follow another guide how to get that .so and it looks like it is already there but maya don./t see it.. and similar stuf :)

Will try again, as soon as I catch some time sit down on the closest guide I found so far and step by step describe here and see how it goes and where it stuck. Will appreciate any insight with anyone that can chime in later on during setup.
And I'm honestly not expecting this to be sorted out in couple hours but probably looking over couple of days :)

By the way I did use timeshift to save status of installation before starting all those changes.. so I'm wondering going back to that point in timeshift should remove all traces of any of the stuff I did while trying to install that right?
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: Autodesk Maya on linux Mint

Post by Hoser Rob »

I'm seeing signs of blind copy/paste without reading all that closely. PLease specify WHAT failed and what messages you got. It's not possible to do anything otherwise.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

Well yes mostly is blind/copy as I have no idea what most of that stuff should be doing. That is why I'm asking for help :)
So idea is to try that again, go line by line and ask here what line is and what is it doing and if it gives some error to see what that error is and how to sort it out. And at the end to put together proper working guide how to install this crap :)
brek

Re: Autodesk Maya on linux Mint

Post by brek »

I though when i found this script that I had solved installing maya onto mint. having same issues as OP. everything worked except for a couple of the commands. I have converted to .deb.

I will when i have time go through process again so i can post what failed, I so want to be able to run maya on linux, I can pretty much forget windows then as I have installed houdini and substance painter OK.

As an aside most of the big post production houses run maya on linux, although i suspect on redhat with support teams.

I guess a big part of my issue is i am completely new to linux and have no coding experience/knowledge at all.
User avatar
absque fenestris
Level 12
Level 12
Posts: 4110
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Autodesk Maya on linux Mint

Post by absque fenestris »

Loud screams at night - somewhere from up there on the fourth floor...
The night guards look at each other sheepishly: Yes indeed HE is at work!
Me, the plotter and AutoCAD in 16 beautiful colors provided by Autodesk.
Winter 1992.
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

brek wrote: Fri Feb 01, 2019 7:56 am I though when i found this script that I had solved installing maya onto mint. having same issues as OP. everything worked except for a couple of the commands. I have converted to .deb.

I will when i have time go through process again so i can post what failed, I so want to be able to run maya on linux, I can pretty much forget windows then as I have installed houdini and substance painter OK.

As an aside most of the big post production houses run maya on linux, although i suspect on redhat with support teams.

I guess a big part of my issue is i am completely new to linux and have no coding experience/knowledge at all.
Same thing here.
Just a bit too busy to play too much around this. Also even offering people to pay to get this sorted out doesn't work :)
Oh well, plan B, got an older laptop sitting around.. will plug mint on it and start with those scripts all over again and try and pose errors here or at least line by line to try and decipher and figure out what is going on.
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

Another try.
This time I trued following this:
https://linuxhint.com/install_autodesk_ ... untu_1804/

It was surprisingly smooth ride until this part, this is the first time I've got an error:

Restoring rpm Utilities

Run the following command to restore rpm utilities:
$ sudo rm -v /usr/bin/rpm
$ sudo mv -v /usr/bin/rpm_backup /usr/bin/rpm

Simply because there was no /usr/bin/rpm_backup.
I don't think that I missed anything before... so..

Anyway after that got to starting maya and this is what I get now, and it seems probable like the last piece of the puzzle to sort out:

Running Maya

Now that everything is configured, you can run Maya 2017 with the following command:
$ /usr/autodesk/maya2017/bin/maya.bin

One note is that I've installed maya2019, following instructinos and replacing folder names ofc from 2017->2019 during the process.
Error is:

/usr/autodesk/maya2019/bin/maya.bin: error while loading shared libraries: libfam.so.0: cannot open shared object file: No such file or directory

So seems like missing libraries,...
Hopefully someone can shed some light on this, feels so close :)
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: Autodesk Maya on linux Mint

Post by xenopeek »

That file is in the libfam0 package. Try installing that if it's not already installed.
Image
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

Gladly but... how :) linux noob here;)
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: Autodesk Maya on linux Mint

Post by xenopeek »

You can either install it through Synaptic Package Manager found in your menu, or from the terminal with command:
apt install libfam0
Image
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

got it!

now error is:

error while loading shared libraries: libpng15.so.15

Tried searching but no luck probably looking for the wrong thing?
There are libpng12 and 16 in Synaptic P.M., nothing with 15?
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: Autodesk Maya on linux Mint

Post by xenopeek »

I can only find that library for Red Hat based operating systems (see https://pkgs.org/download/libpng15). You could try installing the RPM again, or you'd have to build it from source similar to was done here: https://ubuntuforums.org/showthread.php ... st12617563. Mind that guide is 7 years old so please don't blindly follow it! I don't know if it will cause issues with libpng16 (which all the other software on your system that needs libpng uses).

I'm pretty sure the best way to proceed is to try and build it from source. You'll need to install the build-essential package through Synaptic to get the complete compiler stack.
Image
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

managed to find this, now not sure what exactly to do with this, how to install? ?:)
Annotation 2019-02-25 220142.jpg
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: Autodesk Maya on linux Mint

Post by xenopeek »

Following the linked article on how to install it from source I would say create a directory /usr/local/libpng/lib, copy the libpng15.so.15 and libpng15.so.15.30.0 files there and then creating a symbolic link the former file into your system's library directory. Make sure the files you have match your architecture (are for 64 bits).

So assuming you've opened a terminal on the directory where you have the libpng15.so.15 and libpng15.so.15.30.0 files, you'd run these commands one at a time (to create the directory, copy the files and link the library respectively):

Code: Select all

sudo mkdir -pv /usr/local/libpng/lib
sudo cp -v libpng15.so.15* /usr/local/libpng/lib
sudo ln -sv /usr/local/libpng/lib/libpng15.so.15 /usr/lib/x86_64-linux-gnu/
Should you need to undo the above just run these two commands to delete the copied and created files:

Code: Select all

sudo rm -iv /usr/lib/x86_64-linux-gnu/libpng15.so.15
sudo rm -irv /usr/local/libpng/
It will prompt you to confirm each removal, just to be safe.
Image
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

New one now :)

/usr/autodesk/maya2019/bin/maya.bin: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libpng15.so.15: file too short
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: Autodesk Maya on linux Mint

Post by xenopeek »

I'm out of ideas. It's starting to look like if you need Maya you may need to consider just installing one of the operating systems they say they support (RHEL 7.3 or 7.5 workstation, or CentOS 7.3 or 7.5 which needs a Maya multi-user license). That could be on a virtual machine inside Linux Mint, or alongside it in dual-boot.
Image
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

One more thing happened, alien for converting rpm to deb is not working any mero as well. Wanted to try with older maya versions and alien stopped working as well :)
I was considering CentOS but to get that OS up to usable state is a nightmare.
Just installing normal nvidia drivers is couple pages guide with terminal mumbo jumbo that simply makes no sense in 21st century.
In a nutshell, CentOS installing maya would probably be a bit easier but then you can't get anything else to simply work.
In mint, everything else pretty much works except for my main work tool :)

All in all seems like will have to wait another 5-10 year and check out status then ;)
mirkoj

Re: Autodesk Maya on linux Mint

Post by mirkoj »

GOT IT!!!
>man after months of suffering finally got it!!

Too tired right now but will put together consolidate tutorial that I followed and last couple pieces I used to get it working. Will test this a bit more but seems like it is there!
Locked

Return to “Software & Applications”