Re: probelm about install



Jiangbo Broadie Gan wrote:

Hi,

I am a student in University of New South Wales, Australia. For my
assignment on OO software design. I downloaded GTK+ version 1.2.8 & GLIB.
when I follow the procedure:

% gzip -cd glib-1.2.8.tar.gz | tar xvf -  # unpack the sources
  % cd glib-1.2.8                           # change to the toplevel
directory
  % ./configure                             # run the `configure' script
  % make                                    # build GLIB
  [ Become root if necessary ]
  % make install                            # install GLIB

The below error occured:
% make install
Making install in .
make[1]: Entering directory `/tmp_amd/glass/import/1/jgan924/glib-1.2.8'
make[2]: Entering directory `/tmp_amd/glass/import/1/jgan924/glib-1.2.8'
/bin/sh ./mkinstalldirs /usr/local/lib
/bin/sh ./libtool  --mode=install ./install-sh -c libglib.la
/usr/local/lib/libglib.la
../install-sh -c .libs/libglib-1.2.so.0.0.8
/usr/local/lib/libglib-1.2.so.0.0.8
cp: cannot create /usr/local/lib/#inst.8923#: Permission denied
make[2]: *** [install-libLTLIBRARIES] Error 2
make[2]: Leaving directory `/tmp_amd/glass/import/1/jgan924/glib-1.2.8'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/tmp_amd/glass/import/1/jgan924/glib-1.2.8'
make: *** [install-recursive] Error 1
Of course I can not install GTK+ (version 1.2.8), sice the above occured.

I know the reason is that I do not have permission to access the directory
/usr/local/lib/

I only can make a directory under my account name.
How can I use GTK+ for C++ on UNIX system (sun solaris)?


you will need to ask the sys admin if he/she is willing to install the glib and the gtk libraries for you. Only root can install them obviously so it is up to that person on whether they wish to do that for you. Be nice and maybe the sys admin will help you.

An alternative is to install Solaris/Linux on a PC of your own so u have control of what is installed and what isn't installed.

HTH






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]