[Mono-list] Mono-2.0.1 installation on Sparc (with commands)

Tynar ripper33 at gmail.com
Fri Jan 2 12:34:18 EST 2009


Hi community I have successfully installed mono-2.0.1 on Solaris 10 sparc. I
want to share the logs and settings I have applied.

Steps:

Installed solaris 10 /08 sparc
Installed all sunfreeware packages which comes in another DVD
edited /usr/lib/pkgconfig/gthread-2.0.pc  /* You can copy my
gthread-2.0.pc(in tar archive), or edit yourself that should look like
mine.*/

Downloaded mono-2.0.1
Downloaded libgdiplus-2.0

Take coffee, enjoy.

/* From shell-history.log*/
export LDFLAGS="-L/opt/lib -L/opt/sfw/lib -L/usr/sfw/lib -L/usr/lib
-lstdc++"
export CPPFLAGS="-I/opt/include -I/opt/sfw/include -I/usr/sfw/include
-I/usr/include"
export LD_LIBRARY_PATH=/opt/mono/lib:/opt/sfw/lib:/usr/sfw/lib:/usr/lib
export
PATH=/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/sfw/sbin:/usr/ucb:/opt/sfw/bin:/opt/sfw/sbin
mv -i /usr/ccs/bin/mcs /usr/ccs/bin/mcs.orig
mv -i /usr/bin/grep /usr/bin/grep.orig
ln -s /usr/sfw/bin/ggrep /usr/bin/grep
mv -i /usr/ccs/bin/ar /usr/ccs/bin/ar.orig
ln -s /usr/sfw/bin/gar /usr/ccs/bin/ar
mv -i /usr/ccs/bin/make /usr/ccs/bin/make.orig
ln -s /usr/sfw/bin/gmake /usr/ccs/bin/make
cd /home/tynar/Documents/downloads/
wget
http://ftp.novell.com/pub/mono/sources/libgdiplus/libgdiplus-2.0.tar.bz2
bzip2 -d < libgdiplus-2.0.tar.bz2 | gtar xf -
cd libgdiplus-2.0/
GREP=ggrep MAKE=gmake AR=gar RANLIB=granlib STRIP=gstrip AS=gas CC=gcc
./configure --prefix=/opt/mono
gmake
gmake install
export
PATH=/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/sfw/sbin:/usr/ucb:/opt/sfw/bin:/opt/sfw/sbin

cd /home/tynar/Documents/downloads/mono-2.0.1
MAKE=gmake AR=gar RANLIB=granlib STRIP=gstrip AS=gas CC=gcc CFLAGS="-g -O2"
./configure --prefix=/opt/mono --with-tls=pthread
--with-includes=/usr/sfw/include/ --with-libs=/usr/sfw/lib/
gmake

/* You will get "invalid option 't' error" here. */
gedit /usr/lib/pkgconfig/gthread-2.0.pc
/*edited gthread-2.0.pc */

MAKE=gmake AR=gar RANLIB=granlib STRIP=gstrip AS=gas CC=gcc CFLAGS="-g -O2"
./configure --prefix=/opt/mono --with-tls=pthread
--with-includes=/usr/sfw/include/ --with-libs=/usr/sfw/lib/
gmake
gmake install

mv -i /usr/ccs/bin/mcs.orig /usr/ccs/bin/mcs
rm /usr/bin/grep
mv -i /usr/bin/grep.orig /usr/bin/grep
mv -i /usr/ccs/bin/ar.orig /usr/ccs/bin/ar
rm /usr/ccs/bin/make
mv -i /usr/ccs/bin/make.orig /usr/ccs/bin/make
exit
bash-3.00$ PATH=/opt/mono/bin:$PATH
bash-3.00$ export PATH
bash-3.00$ which mcs
/opt/mono/bin/mcs
bash-3.00$ mcs
error CS2008: No files to compile were specified
bash-3.00$ mcs --version
Mono C# compiler version 2.0.1.0
bash-3.00$ gmcs --version
Mono C# compiler version 2.0.1.0
bash-3.00$ mono --version
Mono JIT compiler version 2.0.1 (tarball)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Notification:  Thread + polling
        Architecture:  sparc
        Disabled:      none


I hope, in near future we will see the success results from
http://mono.ximian.com/monobuild/

I want to create packages and upload them. I am not an expert on compiling
packages, but I want to maintain the solaris packages, if administrators
accept. I can help newbies who are in troubles with packages for solaris 10
sparc.

I am very thankful to Yasuaki from Mindtouch.

Tynar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090102/509b54d8/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-2.0.1.install-logs.zip
Type: application/zip
Size: 4320 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20090102/509b54d8/attachment.zip 


More information about the Mono-list mailing list