一半君的总结纸

听话只听一半君

Fedora 19 64 bit下安装 Maya 2014 SP2

反正我也没心情学习

    1. 官网下载2014 sp2安装包解开后安装
      ./setup
      
    2. 安完以后开不开,废话我还没xx
      但是在xx之前,可能需要安几个其他packages

      yum install libXp tcsh
      

      再试的时候发现还是少文件

      /usr/autodesk/maya2014-x64/bin/maya.bin: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory
      
      [oglopvnc@localhost build]$ locate libtiff.so
      /usr/lib/libtiff.so.5
      /usr/lib/libtiff.so.5.2.0
      /usr/lib64/libtiff.so.5
      /usr/lib64/libtiff.so.5.2.0
      /var/cache/abrt-di/usr/lib/debug/usr/lib64/libtiff.so.5.2.0.debug
      /var/cache/abrt-di/usr/lib/debug/usr/lib64/libtiff.so.5.debug
      /var/cache/abrt-di/usr/lib/debug/usr/lib64/libtiff.so.debug
      
      乱搞一下
      ln -s /usr/lib64/libtiff.so.5 /usr/lib64/libtiff.so.3
      
    3. 好了现在可以开了,你现在可以按照xx说明来进行xx了(你还得自己把flexlm license server/client装上)
      xx的时候你可以会发现lmtuil打不开?

      [root@localhost Autodesk_Maya_2014_SP2_English_Linux_64bit]# /opt/flexnetserver/lmutil --help
      bash: /opt/flexnetserver/lmutil: /lib64/ld-lsb-x86-64.so.3: bad ELF interpreter: No such file or directory
      
      再来乱装一下
      yum install redhat-lsb
      

      ps: 有时候想开下进程管理器关maya

      qdbus org.kde.krunner /App showTaskManager
      

      pss:
      有可能还需要改一个地方(如果你安装的时候没选要用network license)

      把文件/usr/autodesk/maya2014-x64/bin/License.env里的内容改成
      MAYA_LICENSE=657F1
      MAYA_LICENSE_METHOD=network
      

      也可以用命令行改

      sudo echo -e 'MAYA_LICENSE=657F1\nMAYA_LICENSE_METHOD=network' > /usr/autodesk/maya2014-x64/bin/License.env
      
    4. 安装xx的时候碰到个问题
      [lz@localhost ~]$ /opt/flexnetserver/lmutil lmhostid ether
      lmutil - Copyright (c) 1989-2012 Flexera Software LLC. All Rights Reserved.
      The FLEXnet host ID of this machine is "000000000000"
      

      因为从fedora 14开始有了Consistent Network Device Naming,网卡的名字不再是eth0这样的了,flexlm的licensing工具不认识这种名字. 找了个教程说是要进行如下操作(其实后来我感觉原作者是不是做的太多了,也许5不需要?我不知道是哪一步达到了我想要的效果)

      1) yum remove biosdevname
      2) add net.ifnames=0 to GRUB_CMDLINE_LINUX in /etc/default/grub
      3) grub2-mkconfig -o /boot/grub2/grub.cfg
      4) rename /etc/sysconfig/network-scripts/ifcfg-whatever to ifcfg-eth0
      5) change to NAME=eth0 inside ifcfg-eth0
      

      实验过发现不行 后来又搜了个教程说第2步要再加上

      biosdevname=0
      

      似乎依然不行,后来又根据
      How can I change the default “ens33” network device to old “eth0” on Fedora 19?

      ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
      

      在这一步操作重启过后,终于可以了…(我是说可以找到网卡的mac地址了)

      edit: 已验证,Fedora19 不需要上面这些步骤,只需要两步就可以了

      1. Remove biosdevname if it is installed.
        yum remove biosdevname
        

        , or put -biosdevname in your kickstart.

      2. Disable the udev rule:
        ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules

edit:license server正常运行了,但是打开maya的时候总是提示找不到license,不知何故.lz自己蒙出来了

snapshot1

snapshot2

  1. edit: 我擦,终于成功了,xx帮助也不写清楚点,貌似和这个文件的权限有关,必须得是644,
    [lz@localhost adsk2014-lin64-net-crk]$ ll /usr/autodesk/maya2014-x64/lib/libadlmint.so.7.0.51
    -rw-r--r--. 1 root root 5247838 Oct  5 12:11 /usr/autodesk/maya2014-x64/lib/libadlmint.so.7.0.51
    

    在这之前我还乱搞过序列号(但是我不确定是哪一步使得注册成功的,我猜是因为上面的文件的权限设置)

    # 确保之前的注册信息被删干净了
    usr/autodesk/maya2014-x64/bin/adlmreg -u N 657F1 2014.0.0.F
    usr/autodesk/maya2014-x64/bin/adlmreg -u S 657F1 2014.0.0.F
    
    # 再加一遍注册信息
    /usr/autodesk/maya2014-x64/bin/adlmreg -i N 657F1 657F1 2014.0.0.F XXX-XXXXXXXX /var/opt/Autodesk/Adlm/Maya2014/MayaConfig.pit
    

    总之最后可以用了,我也就没折腾了

  2. edit:最后显然需要把lmgrd加到自动启动里,你应该不会想每次都要自己手动开吧,用个“高科技”功能systemd,lz不知道license server安装时候会自动安成自动启动的?lz这里好象是没有,所以lz下面自己手动添加:
    在/etc/systemd/system/下新建个文件,随便起个xxx.service的名字,内容如下:(lz存成了lmgrd.service)

    [Unit]
    Description=launch flexlm server
    
    [Service]
    ExecStart=/opt/flexnetserver/lmgrd
    Type=forking
    
    [Install]
    WantedBy=multi-user.target
    

    然后运行

    # 启动新加的service
    systemctl daemon-reload
    systemctl start lmgrd
    
    # 查询下看成功没有
    systemctl status lmgrd
    # 如果出现Active: active (running) since ...的字样说明可以了,可以开Maya验证下是不是可以
    
    # 最后让他自动启动
    systemctl enable lmgrd
    

ps:真麻烦,我是不是应该仿照已经有的2013自动安装来改编个2014一键xx版安装…

update: 写到一半,正在解决不是eth0的问题,因为需要重启,所以我觉得简单起见,分成两个script好了,或者干脆期待使用者自己解决不是eth0的问题,然后,直接运行一键安装script,从安装到xx一次搞定…

参考:
http://area.autodesk.com/tutorials/installation_guide_for_maya_2013_on_linux_fedora_14
这个好,我感觉我应该改写一个装2014,在fedora19下用的
http://pastebin.com/0iqTPvNe

我从来没有说过下面这个是我写的,请勿跨省
pastebin.com/Y96ksftG
人肉备份

#!/bin/bash

MAYA_INSTALLER_FILE=Autodesk_Maya_2014_SP2_English_Linux_64bit.tgz

MAYA_INSTALLER_URL=http://download.autodesk.com/us/maya/service_packs/${MAYA_INSTALLER_FILE}

CRACK_FILES_DIR=Crack-Net-Lnx64

# echo $MAYA_INSTALLER_URL

echo Install required packages ...
sudo yum -y install wget libpng12 libXp tcsh libtiff

echo    
if [ ! -f "${MAYA_INSTALLER_FILE}" ]; then
    echo "Installer file not found, auto downloading ..."
    echo $MAYA_INSTALLER_URL
    wget $MAYA_INSTALLER_URL
fi

MAYA_INSTALLER_DIR="${MAYA_INSTALLER_FILE%.*}"

echo 

if [ ! -d "${MAYA_INSTALLER_DIR}" ] ; then
    mkdir $MAYA_INSTALLER_DIR
    echo Extracting files from $MAYA_INSTALLER_FILE
    echo
    tar -xvzf $MAYA_INSTALLER_FILE -C ./$MAYA_INSTALLER_DIR 
fi

cd $MAYA_INSTALLER_DIR

echo 
echo kill lmgrd process
sudo kill $(ps aux | grep 'lmgrd' | awk '{print $2}')

for i in `ls | grep .rpm`
do
    echo
    sudo rpm -ivh $i
    #sudo rpm -ev --nodeps "${i%.*}"
    #do sudo yum install $i
done

sudo cp libadlmPIT.so.7  /usr/autodesk/maya2014-x64/bin/
sudo cp libadlmutil.so.7  /usr/autodesk/maya2014-x64/bin/


sudo /usr/autodesk/maya2014-x64/bin/adlmreg -u N 657F1 2014.0.0.F
sudo /usr/autodesk/maya2014-x64/bin/adlmreg -u S 657F1 2014.0.0.F

sudo /usr/autodesk/maya2014-x64/bin/adlmreg -i N 657F1 657F1 2014.0.0.F 666-69696969 /var/opt/Autodesk/Adlm/Maya2014/MayaConfig.pit 

cd ..

sudo echo -e 'MAYA_LICENSE=657F1\nMAYA_LICENSE_METHOD=network' > /usr/autodesk/maya2014-x64/bin/License.env

echo
if [ -d "${CRACK_FILES_DIR}" ] ; then
    cd $CRACK_FILES_DIR
    sudo cp -f libadlmint.so.7.0.51 /usr/autodesk/maya2014-x64/lib/
    sudo cp -f adskflex /opt/flexnetserver/    
fi

echo
localBin=/usr/local/bin
mayaBin=/usr/autodesk/maya2014-x64/bin
echo recreating maya symlink
sudo rm -f $localBin/maya $localBin/Render $localBin/fcheck $localBin/imgcvt
sudo ln -s $mayaBin/maya2014 $localBin/maya
sudo ln -s $mayaBin/fcheck $localBin/fcheck
sudo ln -s $mayaBin/imgcvt $localBin/imgcvt
sudo ln -s $mayaBin/Render $localBin/Render

# get host name - not used
hostname=`/opt/flexnetserver/lmutil lmhostid hostname | sed -e :a -e '$q;N;2,$D;ba'| sed  's/^.*is \"\([^\"]*\)\".*$/\1/'`

hostname=`echo $hostname | sed 's/HOSTNAME\=\(.*\)$/\1/'`

hostId=`/opt/flexnetserver/lmutil lmhostid ether | sed -e :a -e '$q;N;2,$D;ba'| sed  's/^.*is \"\([a-z0-9]*\)\".*$/\1/'`

echo 
echo hostname : $hostname
echo hostId : $hostId

# if hostId is 000000000000 then we need to "fix" it
if [ "$hostId" == "000000000000" ]; then
    echo fixing fedora 14 or above Consistent Network Device Naming ...
    echo will auto reboot
    sudo yum -y remove biosdevname
    sudo ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
    sudo reboot
fi

sudo sed "1c\SERVER localhost $hostId" lic.dat > license.dat
sudo mkdir -p /usr/local/flexlm/licenses/
sudo mv license.dat /usr/local/flexlm/licenses/license.dat

lmgrdUnitFile=/etc/systemd/system/lmgrd.service

# write lmgrd service unit file
echo
if [ ! -f $mayaSymLink ]; then
echo creating lmgrd service unit file
sudo tee $lmgrdUnitFile >/dev/null <<EOF
[Unit]
Description=launch flexlm server
 
[Service]
ExecStart=/opt/flexnetserver/lmgrd
Type=forking
 
[Install]
WantedBy=multi-user.target
EOF

fi

echo 
# reload the daemon
echo reload all daemon ...
sudo systemctl daemon-reload

echo
# start the daemon
echo start lmgrd daemon ...
sudo systemctl stop lmgrd
sudo systemctl start lmgrd

echo  
# is the service started ?
echo show lmgrd daemon status ...
sudo systemctl status lmgrd

echo
# make the service enabled 
echo Enable lmgrd daemon ...
sudo systemctl enable lmgrd

libTiff=/usr/lib64/libtiff.so.3
if [ ! -f $libTiff ]; then
sudo ln -s /usr/lib64/libtiff.so.5 $libTiff
fi

sudo chmod 644 /usr/autodesk/maya2014-x64/lib/libadlmint.so.7.0.51

参考
Maya 2013 Installation Guide
Maya 2014 Installation Guide

Advertisements

One response to “Fedora 19 64 bit下安装 Maya 2014 SP2

  1. Pingback: unattended / silent deployment for renderfarm | 进不了ILM的屌丝男

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: