[GE users] SGE 6.0 for NetBSD

Ron Chen ron_chen_123 at yahoo.com
Wed Oct 20 15:20:15 BST 2004


You can take a look at this presenation (the last few
pages) and see how SGE is built from the source
tarball:

http://gridengine.sunsource.net/project/gridengine-download/workshop22-24.04.02/presentations/sun_part1aa.pdf

Also, for SGE 6.0, distinst has the option to continue
even when an error is encountered -- just pass the
flag "-noexit" to distinst.

And, I wonder if all the binaries are there in your
tree -- can you do a "find" and see if they are there
or not?

 -Ron

--- Co Thai Ngo <cngo at nmsu.edu> wrote:
> Here is what I have done:  
>   
> - build BerkeleyDB  
> - acacia# url2pkg
> /usr/pkgsrc/distfiles/sge-V60_TAG-src.tar.gz  
> - acacia# make configure  
> - change Makefile, source and script files as in the
> attached 
> - acacia# make 
> - acacia# make install 
> ===> Checking for vulnerabilities in
> sge-V60_TAG-srcnb1 
> ===> Installing for sge-V60_TAG-srcnb1 
> Group 'sgeadmin' already exists. 
> User 'sgeadmin' already exists. 
> /bin/mkdir -p /usr/pkg/sge 
> /usr/sbin/chown sgeadmin /usr/pkg/sge 
> /usr/bin/chgrp sgeadmin /usr/pkg/sge 
> cd /usr/pkgsrc/wip/sge-test/work/gridengine/source
> &&  echo "Y" | /usr/bin/env 
> LOCALBASE=/usr/pkg SGE_ROOT=/usr/pkg/sge
> ./scripts/distinst -local -allall 
> nbsd-i386 
> OPENSSLBASE: not found 
>  
>     Installing: sge_qmaster sge_execd sge_shadowd
> sge_schedd sge_shepherd 
> sge_coshepherd qstat qsub qalter qconf qdel qacct
> qmod qsh utilbin jobs qmon 
> qhost qmake qtcsh qping distcommon 
>  Architectures: nbsd-i386 
> Base directory: /usr/pkg/sge 
>    OK [Y/N][Y]: 
> Installing "3rd_party/" directory tree 
> Installing "inst_sge", "install_qmaster" and
> "install_execd" 
> Installing "util/" directory tree 
> Installing "examples/jobs" 
> Copying Pixmaps and Qmon resource file 
> cp: dist/qmon/Qmon: No such file or directory 
>  
> This command failed: cp dist/qmon/Qmon
> /usr/pkg/sge/qmon 
>  
> Installation failed. Exiting. 
>  
> *** Error code 1 
>  
> Stop. 
> make: stopped in /usr/pkgsrc/wip/sge-test 
>  
>  
>   
> Quoting Rayson Ho <raysonho at eseenet.com>:  
>   
> > Can you list the steps done by you to compile SGE
> 6.0 on NetBSD??  
> >   
> > Rayson  
> >   
> >   
> > >It seems that the binary files (qmon,
> sge_qmaster, sge_schedd...) are not  
> >   
> > >created. I don't know what step is missing or
> what I should add to SGE 6.0  
> >   
> > >source files to make it run on NetBSD. Any advice
> or comment ? Has any of  
> > you   
> > >tried SGE 6.0 on NetBSD. What problem are you
> facing with ? If it's  
> > success,   
> > >could you please send me the package or post it
> on CVS.   
> > >   
> > >Thank you very much,   
> > >   
> > >--    
> > >Co Thai Ngo    
> > >Dept. of Biology     
> > >New Mexico State University     
> >
>
---------------------------------------------------------
>  
> > Get your FREE E-mail account at
> http://www.eseenet.com !  
> >   
> >
>
---------------------------------------------------------------------
>  
> > To unsubscribe, e-mail:
> users-unsubscribe at gridengine.sunsource.net  
> > For additional commands, e-mail:
> users-help at gridengine.sunsource.net  
> >   
> >   
>   
> --   
> Co Thai Ngo   
> Dept. of Biology    
> New Mexico State University    > # $NetBSD:
Makefile,v 1.4 2004/10/03 00:18:03 tv Exp
> $
> #
> 
> DISTNAME=		sge-V60_TAG-src
> PKGREVISION=	1
> CATEGORIES=		parallel sysutils
> MASTER_SITES=		/usr/pkgsrc/distfiles/
> 
> MAINTAINER=	 	cngo at nmsu.edu	
> HOMEPAGE=		http://gridengine.sunsource.net/
> COMMENT=		Sun Grid Engine distributed resource
> management system
> 
> WRKSRC= 		${WRKDIR}/gridengine
> BUILD_DEPENDS+=	
> {staNdalone-tcsh,tcsh}-[0-9]*:../../shells/tcsh
> 
> GNU_CONFIGURE=		YES
> USE_BUILDLINK3=		YES
> USE_GNU_TOOLS+=		make
> USE_X11=		YES
> USE_PERL5=		YES
> 
> CFLAGS+=		-D${UPPER_OPSYS}
> CONFIGURE_ENV+=		REMOTE=sge
> CONFIGURE_ENV+=		CFLAGS="${CFLAGS}"
> CONFIGURE_ARGS+=	--with-grd=${SGE_BUILDARCH}
> PLIST_SUBST+=		SGE_ARCH=${SGE_ARCH}
> MESSAGE_SUBST+=		SGE_ROOT=${SGE_ROOT}
> MAKE_ENV+=		PERL5=${PERL5}
> 
> USE_PKGINSTALL=		YES
> SGE_USER?=		sgeadmin
> SGE_GROUP?=		sgeadmin
> PKG_GROUPS=		${SGE_GROUP}
> PKG_USERS=		${SGE_USER}:${SGE_GROUP}::Sun\\ Grid\\
> Engine\\ Administrator
> 
> EVAL_PREFIX+=	PKGSRC_SSL_PREFIX=openssl
> 
> AIMK=	${SETENV} ${MAKE_ENV} tcsh -fb
> ${WRKSRC}/source/aimk
> 
> CONFIG_GUESS_OVERRIDE=
> source/3rdparty/qmake/config.guess \
> 		source/3rdparty/qtcsh/config.guess
> CONFIG_SUB_OVERRIDE=
> source/3rdparty/qmake/config.sub \
> 		source/3rdparty/qtcsh/config.sub
> 
> .include "../../mk/bsd.prefs.mk"
> 
> # SGE_ARCH should match the putput of
> ${WRKSRC}/source/dist/util/arch
> # SGE_BUILDARCH should match whats in
> ${WRKSRC}/source/aimk
> UPPER_OPSYS!=		${ECHO} "${OPSYS}" | ${TR} a-z A-Z
> 
> .if ${OPSYS} == "NetBSD"
> SGE_ARCH=		nbsd-${MACHINE_ARCH}
> SGE_BUILDARCH!=		${ECHO} "${OPSYS}_${MACHINE_ARCH}"
> | ${TR} a-z A-Z
> .elif ${OPSYS} == "FreeBSD"
> SGE_ARCH=		fbsd-${MACHINE_ARCH}
> SGE_BUILDARCH!=		${ECHO} "${OPSYS}_${MACHINE_ARCH}"
> | ${TR} a-z A-Z
> .elif ${OPSYS} == "SunOS"
> .  if ${MACHINE_ARCH} == "i386"
> SGE_ARCH=		solaris86
> .  else
> _ISAINFO!=		isainfo
> .    if !empty(_ISAINFO:Msparcv9)
> SGE_ARCH=		solaris64
> .    else
> SGE_ARCH=		solaris
> .    endif
> .  endif
> SGE_BUILDARCH!=		${ECHO} "${SGE_ARCH}" | ${TR} a-z
> A-Z
> .elif ${OPSYS} == "Darwin"
> SGE_ARCH=		darwin
> SGE_BUILDARCH=		DARWIN
> .else
> PKG_FAIL_REASON=	"SGE_ARCH and SGE_BUILDARCH need to
> be confgured for your OS"
> .endif
> 
> LDFLAGS+=	-R${SGE_ROOT}/lib/${SGE_ARCH}
> BUILDLINK_PASSTHRU_RPATHDIRS+=
> ${SGE_ROOT}/lib/${SGE_ARCH}
> 
> SGE_ROOT=	${PREFIX}/sge
> 
> post-patch:
> 	@if [ "`${WRKSRC}/source/dist/util/arch`" !=
> "${SGE_ARCH}" ]; then \
> 		${ECHO} "ERROR:  SGE_ARCH as set in the pkgsrc
> Makefile," ;\
> 		${ECHO} "        ${SGE_ARCH}, does not agree with
> that returned by" ; \
> 		${ECHO} "        ${WRKSRC}/source/dist/util/arch,"
> ; \
> 		${ECHO} "       
> `${WRKSRC}/source/dist/util/arch`" ; \
> 		${FALSE} ; \
> 	fi
> 
> pre-configure:
> .for __tmp__ in source/dist/util/arch_variables
> source/scripts/distinst.site source/aimk.site
> 	${MV} ${WRKSRC}/${__tmp__} ${WRKSRC}/${__tmp__}.bak
> 	${SED} -e 's;@rcd_dir@;${RCD_SCRIPTS_DIR};g' -e
> 's;@ssl_prefix@;${SSL_PREFIX};g' \
> 		-e 's;@perl5@;${PERL5};g' ${WRKSRC}/${__tmp__}.bak
> > \
> 		${WRKSRC}/${__tmp__}
> 	${RM} ${WRKSRC}/${__tmp__}.bak
> .endfor
> 
> do-configure:
> .for __prog__ in qmake qtcsh
> 	${MKDIR}
>
${WRKSRC}/source/3rdparty/${__prog__}/${SGE_BUILDARCH}
> 	cd
>
${WRKSRC}/source/3rdparty/${__prog__}/${SGE_BUILDARCH}
> && \
> 		${SETENV} ${CONFIGURE_ENV} \
> 		SGE_ARCH=`${WRKSRC}/source/dist/util/arch` \
> 		../configure ${CONFIGURE_ARGS} --srcdir=..
> .endfor
> 
> do-build:
> 	cd ${WRKSRC}/source && ${AIMK} -only-depend
> 	cd ${WRKSRC}/source && ${SETENV} ${MAKE_ENV}
> ./scripts/zerodepend
> 	cd ${WRKSRC}/source && ${AIMK} -no-qmake -no-qtcsh
> depend
> #	cd ${WRKSRC}/source && ${AIMK} -no-mt
> #	cd ${WRKSRC}/source && ${AIMK} -secure
> 	cd ${WRKSRC}/source && ${AIMK} -man
> 
> do-install:
> #	${LN} -fs ${WRKSRC}/source/scripts/distinst
> ${WRKSRC}/source/scripts/myinst
> 	${MKDIR} ${SGE_ROOT}
> 	${CHOWN} ${SGE_USER} ${SGE_ROOT}
> 	${CHGRP} ${SGE_GROUP} ${SGE_ROOT}
> 	cd ${WRKSRC}/source && \
> 		${ECHO} "Y" | ${SETENV} LOCALBASE=${LOCALBASE}
> SGE_ROOT=${SGE_ROOT} ./scripts/distinst -local
> -allall ${SGE_ARCH}
> 	cd ${SGE_ROOT} && ${SETENV} SGE_ROOT=${SGE_ROOT}
> ./util/setfileperm.sh -auto -noresport \
> 		${SGE_USER} ${SGE_GROUP} ${SGE_ROOT}
> 	for f in ${SGE_ROOT}/bin/${SGE_ARCH}/q* ; do \
> 		cd ${PREFIX}/bin && ${LN} -fs $$f ; done
> 
> .include "../../graphics/xpm/buildlink3.mk"
> .include "../../security/openssl/buildlink3.mk"
> .include "../../mk/motif.buildlink3.mk"
> .include "../../mk/bsd.pkg.mk"
> .if ${USE_BUILTIN.openssl} == "yes"
> SSL_PREFIX=	/usr
> .else
> SSL_PREFIX=	${PKGSRC_SSL_PREFIX}
> .endif
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail:
users-help at gridengine.sunsource.net



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list