Rysiu
September 21, 2012, 11:28am
1
Hi all;
I'm looking for free access to the Solaris operating system. I have no way to install at home (even on a virtual machine).
I been developing BOINC project (OProject@Home: site: oproject.goldbach.pl). I would like to compile and test programs on Solaris.
Can someone provide a remote access?
I just need compilers (gcc, g+ +, make, svn). I can count on for help?
bitlord
September 21, 2012, 12:02pm
2
If you want to work on Solaris you can download both Solaris 10 & 11 from the Oracles site.
On the download page you can choose different types of install media. They have VMs you can download and install. I have downloaded and installed Solaris at home for testing.
just Google "solaris download" and you will see the links. The OS is for free.
As for compilers have you looked at sunfreeware.com ?
gcc and g++ are actually bundled with Solaris 10 and 11.
Rysiu
September 24, 2012, 4:54pm
4
OK. I have:
Rysiu@solaris:~$ uname -a
SunOS solaris 5.11 11.0 i86pc i386 i86pc
Rysiu@solaris:~$ /usr/sfw/bin/g++ -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds/hudson/workspace/nightly/build/i386/components/gcc3/gcc-3.4.3/configure --prefix=/usr/sfw --mandir=/usr/sfw/share/man --infodir=/usr/sfw/share/info --without-gnu-ld --with-ld=/usr/bin/ld --enable-languages=c,c++,f77,objc --enable-shared --with-gnu-as --with-as=/usr/gnu/bin/as
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)
I compile simple program hello world!
Rysiu@solaris:~$ /usr/sfw/bin/g++ hello.cpp -o hello
hello.cpp:1:20: stdio.h: No such file or directory
hello.cpp: In function `int main()':
hello.cpp:5: error: `printf' undeclared (first use this function)
hello.cpp:5: error: (Each undeclared identifier is reported only once for each function it appears in.)
How to add a library? Are not available.
You are not missing a library but an include file (i.e. header). Install them with:
pkg install system/header
Rysiu
September 25, 2012, 4:31am
6
Ok, work. I compile 'Hello wordl'
However, I have a problem with other libraries.
ld: fatal: library -lm: not found
ld: fatal: library -lc: not found
math.h and stdlib.h is available in the system at
/usr/include/math.h
/usr/include/stdlib.h
There you will find all files with headers.
Linking (so files) does not work. I need to do something?
Are you trying to statically link your program (--static) ?
Rysiu
September 25, 2012, 5:44am
8
Dynamic linking work. Static no. I can easily add static linking?
I need:
How can I install it?
pkg install pkg-config
No work.
Static linking system libraries is pointless and no more supported.
Rysiu
September 25, 2012, 1:29pm
10
How I can install pkg-config?