Hey guys,
I've been trying to install Maya 2011 for some time now. I get the rpms
unpacked
(http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=15770983&linkID=9242259)
with no major difficulties.
The dynamic linking needed is in place (ebuild I'm writing to make life easier
for other people is attatched) as far as I can tell.
The problem occurs when I attempt to run it. I get (What I've found to be error
20) an error with the licensing despite having a valid license.
Questions are:
Does anyone have maya 2011 running on their gentoo box, and possibly willing to
help?
If not then is anyone willing to help? This has me boggled, I've tried to the
best of my knowledge to make it run but can't seem to get past it.
I've primarily followed this (http://etoia.free.fr/?p=1611) article on how to
install.
The only deviation has been not copying to /usr, /var, there's nothing needing
/etc, and /opt.
I've the instruction of exporting the maya path has been followed although it's
been directed to where the maya install is, rather than to /usr/autodesk/maya...
Help would be much appreciated :)
--
Zeerak Waseem
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Maya-2011 for x86 and amd64$
# RPM versions within the tarballs which will get installed
# Matchmover is a camera tracking tool
# Adlmapps is needed to activate
# Adlclient and server are needed to activate
# There is no support for backburner at the current time
# Backburner can distribute cputime to another computer
# Backburner monitor can monitor same with webmonitor
# Toxik is a film compositing tool
# Maya is a 3d editing tool
# Mayadocs for documentation
inherit rpm eutils versionator
IUSE="bundled-libs backburner backburner-monitor backburner-webmonitor doc
matchmover toxik openmotif"
S="${WORKDIR}"
DESCRIPTION="Autodesk's Maya. Commercial modeling and animation package"
HOMEPAGE="http://www.alias.com/eng/products-services/maya/index.shtml"
# Patches to download go into SRC_URI
SRC_URI="autodesk_maya_2011_sp1_linux_64bit.tgz"
RESTRICT="fetch nouserpriv"
SLOT="$(get_version_component_range 1-2)"
LICENSE="maya-11.0 mayadoc-11.0"
# Still having trouble getting the docs working right.
KEYWORDS="~amd64"
DEPEND="app-arch/rpm2targz app-arch/tar"
RDEPEND="|| ( app-shells/tcsh app-shells/csh )
x11-libs/libxcb app-admin/gamin dev-libs/libgamin
media-libs/libquicktime dev-lang/python media-libs/audiofile
sys-libs/e2fsprogs-libs media-libs/openal
media-libs/libpng:1.2
amd64? (
!bundled-libs? ( x11-libs/libXpm x11-libs/libXmu x11-libs/libXt
x11-libs/libXp x11-libs/libXi x11-libs/libXext
x11-libs/libX11
x11-libs/libXau x11-libs/libxcb )
bundled-libs? ( app-emulation/emul-linux-x86-xlibs )
bundled-libs? ( app-emulation/emul-linux-x86-baselibs )
bundled-libs? ( app-emulation/emul-linux-x86-qtlibs )
openmotif? ( x11-libs/openmotif ) ) "
MAYADIR="/opt/Autodesk"
pkg_nofetch() {
einfo "This ebuild expects your files to be placed in ${DISTDIR}:"
# einfo
# einfo "Downloads from Alias's support server:"
# einfo
"htp://usa.autodesk.com/adsk/servlet/ps/dl/item?linkID=9242259&id=15113998&siteID=123112"
}
src_unpack() {
# Unpack downloaded tarall containing RPMss
unpack ${A}
# Begin the mass rpm conversion/unpacking
rpm2cpio adlmapps3-3.0.17-0.x86_64.rpm | cpio -idmvu
assert "Failed to unpack adlmapps3-3.0.17-0.x86_64.rpm"
rpm2cpio adlmflexnetclient-3.0.17-0.x86_64.rpm | cpio -idmvu
assert "Failed to unpack adlmflexnetclient-3.0.17-0.x86_64.rpm"
rpm2cpio adlmflexnetserver-3.0.17-0.x86_64.rpm | cpio -idmvu
assert "Failed to adlmflexnetserver-3.0.17-0.x86_64.rpm"
rpm2cpio Maya2011_0_64-2011.0-419.x86_64.rpm | cpio -idmvu
assert "Failed to unpack Maya2011_0_64-2011.0-419.x86_64.rpm"
if use doc; then
rpm2cpio Maya2011_0_64-docs_en_US_64-2011-88.x86_64.rpm | cpio
-idmvu
assert "Failed to unpack
maya2011_0_64-docs_en_US_64-2011-88.x86_64.rpm"
fi
# Due to backburner having to be in 32-bit and depending
# On packages such as glibc it is for now (with my current
# knowledge on ebuilds and such, not possible to support
# the install of backburner.
#
if use backburner ; then
rpm2cpio backburner.sw.base-2011-1470.i386.rpm | cpio -idmvu
assert "Failed to unpack backburner.sw.base-2011-1470.i386.rpm"
rpm2cpio autodesk.backburner.monitor-2011-377.i386.rpm | cpio
-idmvu
assert "Failed to unpack
autodesk.backburner.monitor-2011-377.i386.rpm"
fi
if use backburner-webmonitor ; then
rpm2cpio backburner_webmonitor.sw.base-2011-1470.i386.rpm |
cpio -idmvu
assert "Failed to unpack
backburner_webmonitor.sw.base-2011-1470.i386.rpm"
fi
if use matchmover ; then
rpm2cpio MatchMover2011_0_64-2011.0-278.x86_64.rpm | cpio -idmvu
assert "Failed to unpack
MatchMover2011_0_64-2011.0-325.x86_64.rpm"
fi
if use toxik ; then
rpm2cpio Composite2011-2011.0-2459.x86_64.rpm | cpio -idmvu
assert "Failed to unpack Composite2011-2011.0-2459.x86_64.rpm"
fi
# mkdir ${S}/insroot || die
# mv ${S}/usr ${S}/insroot/opt || die
# rm -rf ${S}/insroot/opt/sbin || die
}
src_install() {
#dohtml README.html
#cd ${S}/insroot
cp -pPR . ${D} || die
# Now let's get the linking party on the road.
cd /usr/lib64
ln -s libtiff.so libtiff.so.3
ln -s libssl.so libssl.so.6
ln -s libcrypto.so libcrypto.so.6
cd /usr/bin/
ln -s /usr/autodesk/maya2011-x64/bin/fcheck fcheck
ln -s /usr/autodesk/maya2011-x64/bin/maya2011 maya
ln -s /usr/autodesk/maya2011-x64/bin/imgcvt imgcvt
ln -s /usr/autodesk/maya2011-x64/bin/Render Render
cd /usr/autodesk
ln -s maya2011-x64 maya
# For those of you who want an icon
ln -sf /usr/autodesk/maya2011-x64/desktop/Autodesk-Maya.desktop
/usr/share/applications/Autodesk-Maya.desktop
ln -sf /usr/autodesk/maya2011-x64/desktop/Maya.png
/usr/share/icons/hicolor/48x48/apps/Maya.png
# Mental Ray needs it's own temporary directory
mkdir /usr/tmp
chmod 777 /usr/tmp
# There is a launching bug that needs to be fixed
sh -c "echo 'setenv LC_ALL en_US.UTF-8' >>
/usr/autodesk/maya2011-x86/maya2011"
export MAYA_LOCATION=/usr/autodesk/maya2011-x86
}
pkg_postinst() {
einfo "To activate your license you must take the following steps with
your user account:"
einfo "sh -c "echo 'int main (void) {return 0; }' >>
/home/$USER/mayaInstall.c" "
echo
einfo "cd $HOME"
einfo "gcc mayaInstall.c"
echo
einfo "The following must be done with write access to /usr/"
einfo "cp /usr/bin/rpm /usr/bin/rpm_backup"
einfo "cp /home/$USER/a.out /usr/bin/rpm"
echo
einfo "cd /var/tmp/portage/media-gfx/maya-11.0/work"
einfo "./setup"
echo
einfo "You will now be asked for your serial and product key. Once
these"
einfo "have been entered and accepted then do:"
einfo "mv /usr/bin/rpm_backup /usr/bin/rpm"
echo
einfo "This should conclude the installation, should Maya however ask"
einfo "for libraries create symlink to these from /usr/lib64"
if use doc && [[ ! -x /usr/bin/mozilla ]] ; then
echo
ewarn "The Maya document system has been installed, but we have
detected"
ewarn "that you don't have Mozilla installed on your system.
Maya"
ewarn "launches mozilla to start the help program, so it is
advised that"
ewarn "you either install mozilla or place a stub executable at
/usr/bin/mozilla"
ewarn "which will launch another browser on your system."
fi
}