Skip to content

Instantly share code, notes, and snippets.

@MichaelLawton
Last active February 23, 2021 09:17
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save MichaelLawton/ee27bf4a0f591bed19ac to your computer and use it in GitHub Desktop.
Save MichaelLawton/ee27bf4a0f591bed19ac to your computer and use it in GitHub Desktop.
Installing Maya 2015 SP5 on Ubuntu 14.04 LTS with Student License. I recommend using my new gist instead: https://gist.github.com/MichaelLawton/32ca5cf6145f0ca4a7ebcdc510d7447d
#References:
#http://forums.autodesk.com/t5/installation-licensing/installing-maya-on-ubuntu/td-p/4905036
#http://askubuntu.com/questions/392806/installing-maya-on-ubuntu-linux
#https://gist.github.com/insomniacUNDERSCORElemon/5555214
#http://nealbuerger.com/2013/05/ubuntu-13-04-maya-2014-install-script/
#http://www.nkoubi.com/blog/tutorial/how-to-install-autodesk-maya-2011-on-debian-ubuntu/
#http://help.autodesk.com/view/MAYAUL/2015/ENU/?guid=GUID-E7E054E1-0E32-4B3C-88F9-BF820EB45BE5
#http://www.andrewhazelden.com/blog/2014/10/autodesk-nlm-licensing-issues-with-maya-2015-and-max-2015/
#Download Maya from here: http://knowledge.autodesk.com/support/maya/downloads/caas/downloads/content/autodesk-maya-2015-service-pack-5.html
#cd to download directory
mkdir maya2015_setup
mv Autodesk_Maya_2015_SP5_English_Linux.tgz maya2015_setup/
cd maya2015_setup
tar xvf Autodesk_Maya_2015_SP5_English_Linux.tgz
export RPM_INSTALL_PREFIX=/usr
export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R5/lib64/
LIBCRYPTO="/usr/lib/x86_64-linux-gnu/libcrypto.so.0.9.8"
LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.0.9.8"
sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.0.9.8 /usr/lib/x86_64-linux-gnu/libssl.so.10
sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.0.9.8 /usr/lib/x86_64-linux-gnu/libcrypto.so.10
sudo apt-get install -y alien csh tcsh libaudiofile-dev libglw1-mesa elfutils gamin libglw1-mesa-dev mesa-utils xfs xfstt ttf-liberation xfonts-100dpi xfonts-75dpi ttf-mscorefonts-installer libfam0 libfam0-dev
sudo apt-get install -y alien
sudo apt-get install -y csh tcsh libaudiofile-dev libglw1-mesa elfutils
sudo apt-get install -y gamin xfstt
#Didn’t work but doesn't seem to be a problem
sudo apt-get install -y libglw1-mesa-dev mesa-utils xfs
sudo apt-get install -y ttf-liberation xfonts-100dpi xfonts-75dpi
sudo apt-get install -y ttf-mscorefonts-installer
#Can take a long time - 15 to 30min
for i in *.rpm; do
sudo alien -cv $i;
done
sudo dpkg -i *.deb
sudo mkdir /usr/tmp
sudo chmod 777 /usr/tmp
xset +fp /usr/share/fonts/X11/100dpi/
xset +fp /usr/share/fonts/X11/75dpi/
sudo cp lib* /usr/lib/
sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2015-x64/bin/License.env
#Error 32 but didn’t matter
#Replace the asterisks with your serial number e.g. 123-12345678
#657G1 is the product code for Autodesk Maya 2015
/usr/autodesk/maya2015-x64/bin/adlmreg -i S 657G1 657G1 2015.0.0.F ***-******** /var/opt/Autodesk/Adlm/Maya2015/MayaConfig.pit
sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.0.9.8 /usr/autodesk/maya2015-x64/lib/libcrypto.so.10
sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.0.9.8 /usr/autodesk/maya2015-x64/lib/libcrypto.so.0.9.8
#Will install without these but will crash when selecting jpeg or tiff images
sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.0 /usr/lib/libtiff.so.3
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so.62 /usr/lib/libjpeg.so.62
sudo rm /usr/lib/libfam.so.0
sudo ln -s /usr/lib/libfam.so.0.0.0 /usr/lib/libfam.so.0
sudo sh -c "echo 'setenv LC_ALL en_US.UTF-8' >> /usr/autodesk/maya2015-x64/bin/maya2015"
/usr/autodesk/maya2015-x64/bin/licensechooser /usr/autodesk/maya2015-x64/ standalone 657G1 maya
sudo -i
export MAYA_LOCATION=/usr/autodesk/maya2015-x64/
export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R9/lib64/
nano mayainstall.c
#add the following in nano, save and close
int main (void) {return 0;}
gcc mayainstall.c
sudo mv /usr/bin/rpm /usr/bin/rpm_backup
sudo cp a.out /usr/bin/rpm
chmod +x ./setup
sudo ./setup
#Then, follow the GUI, Accept, put your Serial Number and the 657G1 thing
sudo rm /usr/bin/rpm
sudo mv /usr/bin/rpm_backup /usr/bin/rpm
#To prevent crashes when loading jpegs
sudo nano /usr/autodesk/maya2015-x64/bin/maya
#Search for
setenv LIBQUICKTIME_PLUGIN_DIR "$MAYA_LOCATION/lib"
#After that line add the following:
setenv LD_PRELOAD /usr/lib/x86_64-linux-gnu/libjpeg.so.62
#ctrl-x to exit
#use super (windows key) for dragging windows instead of alt which is needed for maya
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>"
#and for the only first time, to activate and stuff
sudo maya
#didn’t activate so go to https://registeronce.autodesk.com and when it asks you for request file, get from /tmp/MAYA2015en_USLongCode.xml while maya activation screen is open. You will get a file named Long_Response_Code.xml which will allow you to activate.
#close maya, and add the following to a launcher
maya
#or
maya -style gtk
@auvipy
Copy link

auvipy commented May 19, 2015

Hi,

will this work on ubuntu 15.04 64 bit?

@MichaelLawton
Copy link
Author

I don't see why not, try it out and let me know how it works for you.

@Ravenstine
Copy link

Thanks for this! It also works for Debian Jessie. The only difference is that I had to also install libXp and make some symlinks:

ln /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/x86_64-linux-gnu/libssl.so.10
ln /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so.10

Copy link

ghost commented Jun 11, 2015

Hello!!!
I'm kinda new to linux so this question might seem kinda dumb.
when I cd to Downloads directory everything is aok but when I enter
mv Autodesk_Maya_2015_SP5_English_Linux.tgz maya2015_setup/

I get this error message

mv: cannot stat ‘Autodesk_Maya_2015_SP5_English_Linux.tgz’: No such file or directory

Can you tell me what I'm doing wrong here?

ThankYou
Taco!!!

@MichaelLawton
Copy link
Author

@TacoMeatDaGod Did you download Maya first? The link is in a comment near the top of the gist. You may have downloaded the wrong file in which case it would have a different name.

The command is simply moving the downloaded Maya file into the maya2015_setup directory. It can't find the file so either it does not exist or has a different name.

@letmejustfixthat
Copy link

Hi,

I'm setting up a render farm for my university and want to install maya on ubuntu server nodes. Have you ever tested this with server-licensing? Should this work with Maya 2016 too?

@MichaelLawton
Copy link
Author

@letmejustfixthatohitsbroken For a standard install of Maya 2016 you would need to change all references from Maya 2015 to Maya 2016. I think it would be likely to work. Since you are using the server version you might also need to change lines 57 and 77. Beyond that I'm not sure.

@eulersson
Copy link

I am having issues with the chmod command on a weird folder when I run the for loop unpacking the rpms:

    mkdir -
    chmod 755 -
    rpm2cpio 'mentalrayForMaya2015_0-2015.0-19.x86_64.rpm' | lzma -t -q > /dev/null 2>&1
    rpm2cpio 'mentalrayForMaya2015_0-2015.0-19.x86_64.rpm' | (cd -;  cpio --extract --make-directories --no-absolute-filenames --preserve-modification-time) 2>&1
    chmod 755 '-/./'
chmod: invalid option -- '/'
Try 'chmod --help' for more information.
    mkdir -/debian
mkdir: invalid option -- '/'
Try 'mkdir --help' for more information.
mkdir -/debian failed:  at /usr/share/perl5/Alien/Package/Deb.pm line 299.
    find - -type d -exec chmod 755 {} ;
    rm -rf -

any idea why this can happen? Thanks.

@eulersson
Copy link

OK I solved the problem I had above by running sudo apt-get --reinstall --only-upgrade install ^{lib,}rpm. Hope this can help somebody. More info in here: http://www.linuxquestions.org/questions/linux-general-1/alien-stoped-working-4175474564/

@Elphoma
Copy link

Elphoma commented Aug 23, 2015

Hi MichaelLawton,
I have a problem with the activation, at the last step for activate when say "so go to https://registeronce.autodesk.com" Iḿ going to URL but Autodesk say me that the serial number (123-12345678) is ivalid. Do you know how I can do to fixed?
Thanks,
Elphoma

@chrisd2000
Copy link

When I tried to install it on my Kubuntu 14.04 laptop, I got the following message: ln: failed to create symbolic link ‘/usr/lib/x86_64-linux-gnu/libssl.so.10’: No such file or directory -- What should I do?

@MichaelLawton
Copy link
Author

@Elphoma You need to replaces all instances of that serial number with a valid one. You can get it here: http://www.autodesk.com/education/free-software/maya

Just start downloading the windows or mac version and then cancel it as you only need the serial number.

@MichaelLawton
Copy link
Author

@chrisd2000 It means that it failed to find the file the symbolic link (shortcut) was linking to. You could search your PC for the libssl.so.0.9.8 file in case it's in a different folder or search in /usr/lib/x86_64-linux-gnu/ for a file that's named a little differently. It might be you need to use the lines in @Ravenstine's comment which link to version 1.0.0 instead of 0.9.8.

You will also need to modify the lines LIBSSL="..." and possibly LIBCRYPTO="..." to reference the correct file.

@namandixit
Copy link

Works on Linux Mint 17.1 with Maya 2016. Just change maya2015-x64 to maya2016 in all filepaths and use 657H1 as that 4-digit product code.

@eulersson
Copy link

./setup: symbol lookup error: ./setup: undefined symbol: _Z34QBasicAtomicInt_fetchAndAddOrderedPVii :(

@angluns
Copy link

angluns commented Nov 27, 2015

Dear MichaelLawton
: line 77: /usr/autodesk/maya2015-x64/bin/licensechooser: No such file or directory ,appear this mistak, Would you help me ? i wishes to need you help. thx.

@stenstorp
Copy link

forked to run maya 2016 SP4 on Ubuntu 15.10:
https://gist.github.com/stenstorp/96960fbe203caf74d4ca

@rishabh-battulwar
Copy link

Worked perfectly! Thanks a lot!

@Inkozi
Copy link

Inkozi commented Feb 29, 2016

Anyone Get a fatal error when starting maya up??

`Stack trace:
/lib/x86_64-linux-gnu/libc.so.6(+0x36d40) [0x7f9ca96ffd40]
OGS::Devices::GLFunctionTable::populate()
OGS::Devices::GLContext::PopulateFunctionTable(OGS::Devices::ACreationParameters const_)
OGS::Devices::VirtualDeviceGL::CreateDevice(OGS::Devices::ACreationParameters const_)
OGS::Devices::Sys::CreateVirtualDevice(OGS::Devices::ACreationParameters_)
OGSRenderer::initializeOGSDevice(OGS::Objects::UString_, int)
OGSMayaRenderer::initialize(bool, unsigned int, int, void_, void_, void*, bool)
OGSMayaBridge::CreateOGSRenderer()
OGSMayaBaseRenderer::initialize()
OGSViewportRenderer::initialize()
OGSMayaBridge::Create3DViewportRenderer()
/usr/autodesk/maya2015-x64/bin/maya.bin() [0x4179e4]
Tapplication::start()
/usr/autodesk/maya2015-x64/bin/maya.bin() [0x40e262]
/usr/autodesk/maya2015-x64/bin/maya.bin() [0x420831]
__libc_start_main
/usr/autodesk/maya2015-x64/bin/maya.bin() [0x40da69]

Fatal Error. Attempting to save in /usr/tmp/diatom.20160229.1720.ma
Writing crash report in /usr/tmp/diatom.20160229.1720.crash
`

SOLUTION
okay this took me waaayyy to long to figure out. I have a GTX970M and am running Ubuntu 14.04. I had the proprietary drivers installed and thought they were the culprit. so I went through a lot of forums about how I should go about installing drivers on my computer. I'm still not 100% sure they are great;however, maya started up and is working! If you have the same problem with a similar card, I would NOT recommend using sudo apt-get install nvidia-current and sudo apt-get install nvidia-current-updates, this seemed to install the wrong driver and I had to go through a low-graphics mode and had to reinstall my drivers that way. RATHER I used bumblebee repos to get me out of this mess. The commands as follows worked for me to fix this problem.

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic

and now my desktop is back to seemingly normal and maya starts without a fatal error.
Drivers for me on linux are soo confusing, I hope if someone runs into this problem this helps!

@sabarishwar
Copy link

I got this error ..any solution.
mkdir: cannot create directory ‘/usr/tmp’: File exists
Registration failed with code: 32

@AniketRavan
Copy link

AniketRavan commented Nov 11, 2016

The installation works perfectly. But I am unable to activate the product. I followed your instructions on line 122 and uploaded the MAYA2015en_USLong_Code.xml. However I get the following error:
"Thanks for initiating your product activation. The system encountered a problem registering or activating your product. Please submit your registration information to us in a Customer Service request and an Autodesk representative will contact you."
Where do I get the Long_Response_Code.xml file from ?

@MichaelLawton
Copy link
Author

I've updated these instructions for Mint 18.1/Ubuntu 16.04. I'd recommend trying to use the new instructions over these ones in almost all cases. https://gist.github.com/MichaelLawton/32ca5cf6145f0ca4a7ebcdc510d7447d

@karanzijohnm
Copy link

am getting an error of no such directory exists chmod +x ./setup

@MichaelLawton
Copy link
Author

@karanzijohnm you should be in the maya2015_setup directory when running that command. Check that the setup file exists in the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment