Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Maya 6.5....anyone get it to install? Ebuild? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Spoony
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2004
Posts: 99
Location: Washington DC

PostPosted: Thu Apr 14, 2005 12:20 am    Post subject: Maya 6.5....anyone get it to install? Ebuild? [SOLVED] Reply with quote

Anyone get maya 6.5 to install? Anyone have an ebuild for it?
_________________
Regards,
Mike Sponsler
msponsler at gmail.com
Back to top
View user's profile Send private message
Spoony
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2004
Posts: 99
Location: Washington DC

PostPosted: Thu Apr 14, 2005 12:44 am    Post subject: Reply with quote

Here's the ebuild I made:
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/maya/maya-6.5.ebuild,v 1.6 2004/08/18 10:59:32 eradicator Exp $

# Note that this ebuild requires you to set the MAYA_INSTALL_LOC environment
# variable to the location of your maya RPMS and documentation:
# MAYA_INSTALL_LOC=/mnt/cdrom/LINUX is default
#
# This directory should contain something files that look like this:
# -r--r--r-- 1 nobody cdrom 1299763 Apr 13 11:08 AWCommon-6.0-1.i686.rpm
# -r--r--r-- 1 nobody cdrom 389544 Apr 13 11:08 AWCommon-server-6.0-1.i686.rpm
# dr-xr-xr-x 2 nobody cdrom 2048 Apr 13 11:09 License_Support
# -r--r--r-- 1 nobody cdrom 96007715 Apr 13 11:08 Maya6_0-6.0-116.i686.rpm
# -r--r--r-- 1 nobody cdrom 28232 Apr 13 11:09 README.html
# dr-xr-xr-x 3 nobody cdrom 2048 Apr 13 11:09 documentation
# -r-xr-xr-x 1 nobody cdrom 2425 Apr 13 11:08 installDocs.sh
# dr-xr-xr-x 3 nobody cdrom 2048 Apr 13 11:09 support

inherit rpm eutils

IUSE="bundled-libs"
S="${WORKDIR}"

DESCRIPTION="Alias Wavefront'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="myr_maya501_gold_linux_update.tgz myr_TechDocs.zip"
SRC_URI=""
RESTRICT="fetch nouserpriv"

# RPM versions within the tarballs which will get installed
AWCOMMON="6.3-1.i686"
AWCOMMON_SERVER="6.3-1.i686"
MAYA6_0="6.5-253.i686"

SLOT="6.5"

LICENSE="maya-5.0 mayadoc-5.0"
# Still having trouble getting the docs working right.
KEYWORDS="-x86 -amd64"

DEPEND="app-arch/unzip"

RDEPEND="|| ( app-shells/tcsh app-shells/csh )
x86? ( >=sys-libs/lib-compat-1.3
!bundled-libs? ( =x11-libs/qt-3*
>=sys-devel/gcc-3*
>=x11-libs/openmotif-2.1.30 ) )
amd64? ( app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-qtlibs )
virtual/jre
virtual/opengl"

pkg_nofetch() {
# einfo "Please place the required files and place them in ${DISTDIR}:"
# einfo
# einfo "Downloads from Alias's support server:"
# einfo "http://aliaswavefront.topdownloads.com/pub/bws/bws_107/myr_maya501_gold_linux_update.tgz"
# einfo "http://aliaswavefront.topdownloads.com/pub/bws/bws_79/myr_TechDocs.zip"
# einfo
einfo "You need to place the Maya 6 CD in the CD drive (we expect /mnt/cdrom)."
einfo "If you don't use /mnt/cdrom or you have network installation files, then you need to set"
einfo "the environment variable 'MAYA_INSTALL_LOC' to the directory containing AWCommon-6.0-1.i686.rpm,"
einfo "AWCommon-server-6.0-1.i686.rpm, Maya6_0-6.0-116.i686.rpm, and documentation."
einfo
}

src_unpack() {
einfo ${MAYA_INSTALL_LOC}
if [ -z "${MAYA_INSTALL_LOC}" ]; then
cdrom_get_cds LINUX/AWCommon-${AWCOMMON}.rpm
MAYA_INSTALL_LOC=${CDROM_ROOT}/LINUX
fi

if [ ! -d "${MAYA_INSTALL_LOC}" ]; then
eerror "MAYA_INSTALL_LOC is not set to a valid location. ${MAYA_INSTALL_LOC} is not a directory."
die "Failure finding maya install files."
fi

cd ${MAYA_INSTALL_LOC}
ebegin "Checking md5sum of files in ${MAYA_INSTALL_LOC}"
md5sum -c ${FILESDIR}/${P}.md5sum
if [ $? -ne 0 ]; then
eend 1
die "Failure checking md5sum of files in ${MAYA_INSTALL_LOC}. If you are certain your CD is not corrupt, file a bug at https://bugs.gentoo.org, comment out the md5sum checking in the ebuild, and proceed at your own risk."
fi
eend 0

mkdir ${S}/RPMS
cd ${S}/RPMS
# Unpack downloaded tarballs containing RPMs
# unpack myr_maya501_gold_linux_update.tgz

# rpm_unpack unpacks in ${WORKDIR} no matter what we try... so get it out of the way...
cd ${S}
rpm_unpack ${MAYA_INSTALL_LOC}/AWCommon-${AWCOMMON}.rpm
rpm_unpack ${MAYA_INSTALL_LOC}/AWCommon-server-${AWCOMMON_SERVER}.rpm
rpm_unpack ${MAYA_INSTALL_LOC}/Maya6_5-${MAYA6_0}.rpm

# Unpack updated RPMs
# rpm_unpack ${S}/RPMS/Maya5_0-${MAYA5_0}.rpm

mkdir ${S}/insroot
mv ${S}/usr ${S}/insroot

# Don't need their init script
rm -rf etc

cp -a ${MAYA_INSTALL_LOC}/documentation ${MAYA_INSTALL_LOC}/README.html ${S}

# Remove unneeded libs (provided by DEPEND).
if ! use bundled-libs; then
rm -f ${S}/insroot/usr/aw/COM/lib/libXm.so.2.1
rm -f ${S}/insroot/usr/aw/maya6.5/lib/libgcc_s.so.1
rm -f ${S}/insroot/usr/aw/maya6.5/lib/libstdc++.so.5.0.5

# We keep this one because of possible C++ ABI changes...
# Maya 6 was compiled with gcc 3.0
# rm -f ${S}/insroot/usr/aw/maya6.5/lib/libqt.so.3

rm -f ${S}/insroot/usr/aw/maya6.5/lib/libXm.so.2

# Use our own jre... chmod first as it might be RO from being on CD
chmod 755 ${S}/documentation/Linux_MayaDocs_Installer/Linux_installMayaDocServer.bin
sed -i 's:^\(JRESTART=.*\)$:#\1:' ${S}/documentation/Linux_MayaDocs_Installer/Linux_installMayaDocServer.bin
fi

# Documentation update
# mkdir ${S}/docs.upgrade
# cd ${S}/docs.upgrade
# unpack myr_TechDocs.zip
}

src_install() {
dohtml README.html

cd ${S}/insroot
cp -a . ${D}

# What follows is modified from rpm -qp --scripts RPMS/AWCommon-5.3-5.i686.rpm
for lmexec in lmcksum lmdiag lmdown lmhostid lmremove lmreread lmstat lmver; do
dosym lmutil /usr/aw/COM/bin/${lmexec}
done

# We use our own Motif runtime unless USE=bundled-libs
if use bundled-libs; then
dosym libXm.so.2.1 libXm.so
dosym libXm.so.2.1 libXm.so.2
fi

dosym COM /usr/aw/COM2
# End rpm -qp --scripts RPMS/AWCommon-5.3-5.i686.rpm

# What follows is modified from rpm -qp --scripts RPMS/Maya5_0-5.0.1-135.i686.rpm
keepdir /var/flexlm
fperms ugo+w /var/flexlm

dosym maya6.5 /usr/aw/maya

# The RPM puts these in /usr/local/bin
keepdir /usr/bin
dosym /usr/aw/maya6.5/bin/Maya6.5 /usr/aw/maya6.5/bin/maya
for mayaexec in Render fcheck imgcvt maya; do
dosym /usr/aw/maya6.5/bin/${mayaexec} /usr/bin/${mayaexec}
done

dosym Mayatomr.so /usr/aw/maya6.5/bin/plug-ins/Mayatomr.sog

# We use our own gcc3 runtime unless USE=bundled-libs
if use bundled-libs; then
dosym libgcc_s.so.1 /usr/aw/maya6.5/lib/libgcc_s.so
dosym libstdc++.so.5.0.5 /usr/aw/maya6.5/lib/libstdc++.so.5
dosym libstdc++.so.5.0.5 /usr/aw/maya6.5/lib/libstdc++.so
fi

# update the mental ray configuration files in place
dosed "/\[PREFIX\]/s//\/usr/" /usr/aw/maya6.5/mentalray/maya.rayrc
dosed "/\[PREFIX\]/s//\/usr/" /usr/aw/maya6.5/bin/mayarender_with_mr
dosed "/\[PREFIX\]/s//\/usr/" /usr/aw/maya6.5/bin/mentalrayrender
dosed "/\[PREFIX\]/s//\/usr/" /usr/aw/maya6.5/bin/mayaexport_with_mr
fperms 755 /usr/aw/maya6.5/bin/mayarender_with_mr /usr/aw/maya6.5/bin/mentalrayrender

# links for pcw
dosym /usr/aw/maya6.5/lib/libawcsprt.so.1 /usr/aw/maya6.5/lib/libawcsprt.so
dosym /usr/aw/maya6.5/lib/libpcw_opa.so.1 /usr/aw/maya6.5/lib/libpcw_opa.so
dosym /usr/aw/maya6.5/lib/libpcwfindkey.so.1 /usr/aw/maya6.5/lib/libpcwfindkey.so
dosym /usr/aw/maya6.5/lib/libpcwxml.so.1 /usr/aw/maya6.5/lib/libpcwxml.so

# End rpm -qp --scripts RPMS/Maya5_0-5.0.1-135.i686.rpm

exeinto /etc/init.d
doexe ${FILESDIR}/maya-docs ${FILESDIR}/aw_flexlm

insinto /etc/conf.d
newins ${FILESDIR}/aw_flexlm.conf.d aw_flexlm

# Now for the docs stuff...
cd ${S}/documentation
addpredict /var/.com.zerog.registry.lock
addwrite /var/.com.zerog.registry.xml
einfo "Starting Maya 6.0 DocServer installation..."
./Linux_MayaDocs_Installer/Linux_installMayaDocServer.bin -DUSER_INSTALL_DIR="${D}/usr/aw/maya6.5/docs" -i silent
# ./Linux_Maya50Docs_Installer/installMayaDocServer.bin -DUSER_INSTALL_DIR="${D}/usr/aw/maya6.5/docs" -i silent
# einfo "Starting Maya 6.0 English Documentation installation..."
# ./Linux_M5en_US_Installer/install_en_US_docs.bin -DUSER_INSTALL_DIR="${D}/usr/aw/maya6.5/docs/Documents" -i silent

# And now the doc update
# cd ${S}/docs.upgrade
# insinto /usr/aw/maya6.5/docs/Documents/maya6.5/en_US
# doins *.zip

# cd ${S}/docs.upgrade/style
# insinto /usr/aw/maya6.5/docs/Documents/maya6.5/en_US/style
# doins *

# Fix permissions
find ${D}/usr/aw -type d -exec chmod 755 {} \;
}

pkg_postinst() {
# What follows is modified from rpm -qp --scripts RPMS/Maya5_0-5.0.1-135.i686.rpm
cp /etc/services /tmp/services.maya_save
awk '/mi-ray3_2maya5_0/ { found++; print ; next } {print} END {if (0==found) print "mi-ray3_2maya5_0 7054/tcp" }' /tmp/services.maya_save > /etc/service

# update the magic file
if [ -e /usr/share/magic ]; then
mv /usr/share/magic /tmp/magic.rpmsave
awk '/Alias.Wavefront Maya files. begin/ {p=1} /Alias.Wavefront Maya files. end/ {p=2} {if (p==2) { p=0} else if (p==0) print }' /tmp/magic.rpmsave > /usr/share/magic
cat /usr/aw/maya6.5/.tmpdata/awmagic >> /usr/share/magic;
# get file to rebuild the cache
file -C > /dev/null 2>&1
rm -Rf /usr/aw/maya6.5/.tmpdata/awmagic 2>&1 > /dev/null
fi
# End rpm -qp --scripts RPMS/Maya5_0-5.0.1-135.i686.rpm

einfo "There may be a more recent license for this workstation available on the Alias|Wavefront"
einfo "web site. Please visit the following URL to check for updated licenses:"
einfo "http://www.aliaswavefront.com/en/Community/Special/keys/maya/"
einfo
einfo "To install your key, either place aw.dat in /var/flexlm or run the following command from an X session:"
einfo "/usr/aw/COM/bin/installKey -input /usr/aw/maya6.5/license_data/maya_prekey_data"
einfo
einfo "Two init scripts have been installed:"
einfo "maya-docs is for the document server (help system)."
einfo "aw_flexlm is for the license server"
einfo

einfo "Maya 6.0 was compiled with gcc 3.0 and origionally linked against glibc 2.1.3. If you intend to compile"
einfo "plugins for Maya, you will need to 'emerge \=sys-devel/gcc-3.0*' and use gcc-config to switch compilers."
einfo "The Maya SDK headers are located in /usr/aw/maya/include, and libs are in /usr/aw/maya/lib."
einfo

# http://www.highend2d.com/boards/showthreaded.php?Cat=&Board=linuxforum&Number=174726&page=&view=&sb=&o=
ewarn "You should disable klipper, xfce4-clipman, and any other clipboard"
ewarn "utilities as they have been shown to cause maya-5.0.1 to crash."
ewarn "Feedback on whether or not this is still true ion Maya 6 would be"
ewarn "appreciated at https://bugs.gentoo.org"
}



HERE'S THE MANIFEST:
MD5 61df5c65e53d40fc5189bd2b6214b8a4 ChangeLog 1940
MD5 63ebb60bc2553853fd34df43060fa090 maya-5.0.1-r1.ebuild 9013
MD5 b006a24c4d1ee3a31caff357b6154c70 maya-6.0.ebuild 10272
MD5 b8882ade44c74883151987b281635b80 maya-6.5.ebuild 10272
MD5 c1e212329f9083e2405b16dd382d6632 metadata.xml 259
MD5 8b9549e3f5f144fc3f8f366fd87da751 files/aw_flexlm 1132
MD5 b9b7f8bf9757bdb6de05d61af9743df3 files/aw_flexlm.conf.d 125
MD5 4c7815a2fa0bc842f364c812ac9beb29 files/digest-maya-5.0.1-r1 142
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-maya-6.0 0
MD5 d47d06f98fae1230e4a0e5db03745c90 files/maya-5.0.1.md5sum 62023
MD5 d3754c36723d75c00053d626e4b2ea54 files/maya-6.0.md5sum 332
MD5 792b77516f1b9b3bda5c456df14fed13 files/maya-docs 314


AND THE MAYA-6.5.MD5SUM:

cd8f3907583616b59512c1917deb93a5 AWCommon-server-6.3-1.i686.rpm
ae62ba805a5b93ff89ffddc5de0ffaf7 Maya6_5-6.5-253.i686.rpm
89ae65cdaab555efdf093e3a3d31e369 AWCommon-6.3-1.i686.rpm
dadb7f384774d03f4abde6f5b604d5da Maya6_5-docs-6.5-253.i686.rpm
d6476e239f193a5e437b1327b512ff5c README.html


I didn't get the maya-docs installed....eh, oh well. Maya will run and work.

I had the maya files (.rpm) sitting in /mnt/cdrom/LINUX

Emerged right up and ran.
_________________
Regards,
Mike Sponsler
msponsler at gmail.com
Back to top
View user's profile Send private message
skyPhyr
Apprentice
Apprentice


Joined: 17 Sep 2004
Posts: 159
Location: London, UK

PostPosted: Sat Apr 16, 2005 11:19 am    Post subject: Reply with quote

Hi Mike,

Thanks very much. Copy and pasting the md5sum for some reason didn't work. It kept giving an error saying that no correctly formatted md5 checksum lines were found. So I just ran
md5sum ./* > /path/to/maya-6.5.md5sum
from the MAYA_INSTALL_LOC to create one on my system which it seemed happy with - even though to me it look identical.

After that the install worked like a charm - thanks again.

Cheers,

Alan.
Back to top
View user's profile Send private message
nazz78
n00b
n00b


Joined: 11 May 2005
Posts: 1
Location: Ljubljana, Slovenia

PostPosted: Wed May 11, 2005 9:28 pm    Post subject: Maya 6.5 Reply with quote

Heya mates!

Thank you for info on this... Since i am a linux newb, i had some minor problems, which might seem helpful to someone, so i ll drop them here.

since maya 6.5 ebuild is not (yet) regarded as stable, i had to download it from:
https://bugs.gentoo.org/show_bug.cgi?id=88759 (maya-6.5.ebuild)

i also downloaded maya-6.5-java-doc.patch and maya-6.5.md5sum

Now first thing i did, was to read some info on how to use ebuild which is not listed in portage tree. I read howto at:
http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds

it is all explained really nice so there was no prob. i've put ebuild to /usr/local/portage/media-gfx/maya and java.doc.patch to /usr/local/portage/media-gfx/maya/files. I could not get md5sum to work, so i deleted it and also removed lines in ebuild which take care of checking the ebuild:

Quote:
cd ${MAYA_INSTALL_LOC}
ebegin "Checking md5sum of files in ${MAYA_INSTALL_LOC}"
md5sum -c ${FILESDIR}/${P}.md5sum
if [ $? -ne 0 ]; then
eend 1
die "Failure checking md5sum of files in ${MAYA_INSTALL_LOC}. If you are certain your CD is not corrupt, file a bug at https://bugs.gentoo.org, comment out the md5sum checking in the ebuild, and proceed at your own risk."
fi

i know taht might not be the wisest choice, but i hope that alias is not distributing corrupted CDs...:)

the i made ortage digest and emerged maya. it installed fine, so far i have not received any errors.

now a bit of testing:
since i use ati firegl, i get quite poor performance comparing to windows (approx 1/2) in viewport. and yes, i have ati drivers which get me around 1880 fps when runing glxgears.
rendering with mental ray is a bit faster though (approx. 1%:). hope to make it some more, since my system is not really optimized - for now i am happy to make it work.

later i ll try to improve performance - if it can be done, since ati, maya and mental ray are all proprietary, so there is not much to optimize... or am i wrong? What gies me hope is that when i ran Ubuntu 2005.4 on same computer that now runs gentoo, i got around 1330 fps in glx gears, which is almost 1/3 less than in Gentoo.
Back to top
View user's profile Send private message
little-gun-42
n00b
n00b


Joined: 12 Dec 2004
Posts: 10
Location: KBH, Denmark

PostPosted: Mon May 16, 2005 11:00 pm    Post subject: Reply with quote

I know that this is just slighty useless info, but the reason that md5sum discards the maya-6.5.md5sum is because there has to be double-spaces (that is " ") between md5sums and filenames
_________________
Fortran.dk - Screenshots: http://fortran.dk/pub/screenshots/
Back to top
View user's profile Send private message
dundas
Guru
Guru


Joined: 16 Dec 2004
Posts: 317
Location: China, Earth

PostPosted: Tue Aug 09, 2005 5:36 am    Post subject: Reply with quote

awesome, I wonder why the there isn't a official ebuild for maya 6.5 yet (or even maya 7)

hopefully Spoony could keep us updated for his wonderful ebuild.

also i wonder if anyone got network rendering using maya and mental ray satellite in gentoo, or any pre-cautions? before we burn money to alias.


thx again
_________________
Appreciate Gentoo: Best Devs, Best Forums. YOU could help too: Help Answer
Back to top
View user's profile Send private message
3Dbuzzer
n00b
n00b


Joined: 18 Aug 2013
Posts: 1

PostPosted: Sun Aug 18, 2013 3:24 pm    Post subject: Reply with quote

:?: This may not help at all, but I got Maya 6.5 to install, since my computer rep told me using home premium Windows 7 (although not as secure) is the only chance to install Maya 6.5. But, not without a "gray box glitch" (the stage grays out momentarily in between assigning textures) which may or may not be corrected by an Nvidia downgrade to 6.1 software, (it worked in Vista) possibly at the risk of crashing the computer. My Vista computer crashed after 4 years, and I installed a pny driver (6.1 geoforce) when I first got the computer, so it's not likely that was the cause. I haven't installed it on my new computer yet.
I'm on vacation with a free 60 day trial download that takes hours to install of the newest Maya trial that's over a thousand bucks! :?:
I'm searching for another solution to the gray box glitch. But I'll probably call tech support about installing the pny geoforce driver, to get their opinion.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum