Hi,

I would like to install gcc...
I have found two ways to install packages: pkg-get and pkgsrc.
By first way, I installed gcc, but when I tried to compile a simple
program I got next message:

stdio.h: No such file or directory

I guess there is no libc on my computer... and I tried to find it
using pkg-get -D option, but no result.

Then I followed by second way... I found next... go to FAQ in belenix site...
Hmmm, I tried 
http://www.genunix.org/wiki/index.php/Belenix_FAQ#How_do_I_manage_packages_on_BeleniX_.3F_Does_the_existing_software_have_packaging_info_.3F
 ... that link is breaken, oh, no :-(...
then I tried google... I got some results: http://belenix.sarovar.org/deviq.html

Next I followed by this steps:

 1.  Download the following files into the same directory:
    Pkgsrc bootstrap kit: bootstrap.tar.bz2
    Pkgsrc setup script : pkgsetup.sh

 2. Now open a terminal window and change to the directory where you
downloaded the above files:  cd /your/directory
 3. Now execute the script:   sh pkgsetup.sh

 4. Now logout and login again and you are ready to use Pkgsrc.
 5. You must now connect to the internet to auto-download packages.

 6. To install packages you need to open a terminal window and
execute:  pkg_add -v <package name>   This command will automatically
download the binary packages and install them in "/usr/pkg".

 7. To see a list of available packages please visit:

    http://public.enst.fr/pkgsrc/packages/SunOS-5.10/i386/pkgsrc-current/All

    Several thousand OpenSource packages are available here for OpenSolaris.


I noticed belenix 7 is SunOS-5.11 and not SunOS-5.10, os I used
http://public.enst.fr/pkgsrc/packages/SunOS-5.11/i386/pkgsrc-2007Q4n0
(anyway that link is breaken...). Ok, after instalation I could get
gcc but when I tried to compile... :

root at bubser:/export/home/alek# /usr/pkg/gcc3/bin/gcc c.c
In file included from c.c:1:
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:54:31:
sys/feature_tests.h: No such file or directory
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:99:27:
iso/stdio_iso.h: No such file or directory
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:168:27:
iso/stdio_c99.h: No such file or directory
In file included from c.c:1:
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:263:
error: syntax error before '*' token
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:291:
error: syntax error before '*' token
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:292:
error: syntax error before '*' token
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:301:
error: syntax error before '*' token
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:303:
error: syntax error before '*' token
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:327:
error: syntax error before '*' token
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:329:
error: syntax error before '*' token
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:340:
error: syntax error before '*' token
/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.6/include/stdio.h:341:
error: syntax error before "FILE"

:-(

before these actions I noticed that belenix has gcc in liveCD (as
belenix.org says). But I could not find it by /usr/bin/find

Can you please help me to get and install gcc correctly, please?


Thanks in advance.



-- 
/BR, Alexander

Reply via email to