Problem installing gcc-3.2.2-sol9-sparc (I meant *not* read)

Problem installing gcc-3.2.2-sol9-sparc (I meant *not* read)

Post by z.. » Thu, 03 Apr 2003 15:54:48



Sorry, I meant the library is *not* read


> Yes, exactly that problem.  And I followed your instruction, it is
> successfully installed.
> But I guess I need to link the library file, because when I compile
> hello.cpp like this: ./g++ hello.cpp, I get the following error:
> # ./g++ hello.cpp
> hello.cpp: In function `int main()':
> hello.cpp:3: `cout' undeclared (first use this function)
> hello.cpp:3: (Each undeclared identifier is reported only once for each
>    function it appears in.)
> hello.cpp:3: `endl' undeclared (first use this function)
> #
> Obviously, the library is read.

Sorry, I meant the library is *not* read
> So where should I link the libraries?
> Thanks.


>>> Hi,

>>> By default, pkgadd gcc-3.2.2-sol9-sparc.local will add this package to /usr/local, right?

>>> However, I guess I do not have enough space in that partition, so I wanna specify a directory
>>> to house this package.

>>> Here is the info about my disk usage status:

>>> # df
>>> /                  (/dev/dsk/c0t0d0s0 ):   98118 blocks    56097 files
>>> /usr               (/dev/dsk/c0t0d0s6 ): 1764920 blocks   400838 files
>>> /proc              (/proc             ):       0 blocks     1828 files
>>> /etc/mnttab        (mnttab            ):       0 blocks        0 files
>>> /dev/fd            (fd                ):       0 blocks        0 files
>>> /var               (/dev/dsk/c0t0d0s3 ):   90722 blocks    32175 files
>> You have more than enough space in /usr/local.  Where you are short of
>> space is /var/tmp.
>> Temporarily rm -r /var/tmp and ln -s /tmp /var/tmp.  After the
>> installation is complete then recreate your /var/tmp.