LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-21-2004, 07:01 PM   #1
SuSE_User
Member
 
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 74

Rep: Reputation: 15
pkgconfig-0.15.0 tar.gz install help


Hey, after I unpacked pkgconfig and ran './configure' (successfully i think), I of course ran 'make'. That also SEEMED to run successfully, however when i ran 'make install', i got this:

lavigne_sk8er@linux:~/Desktop/pkgconfig-0.15.0> make install
Making install in glib-1.2.8
make[1]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8'
Making install in .
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8'
make[3]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8'
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8'
Making install in gmodule
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/gmodule'
make[3]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/gmodule'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/gmodule'
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/gmodule'
Making install in gthread
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/gthread'
make[3]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/gthread'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/gthread'
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/gthread'
Making install in docs
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/docs'
make[3]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/docs'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/docs'
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/docs'
Making install in tests
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/tests'
make[3]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/tests'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/tests'
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8/tests'
make[1]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0/glib-1.2.8'
make[1]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0'
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0'
/bin/sh ./mkinstalldirs /usr/local/bin
/bin/sh ./libtool --mode=install /usr/bin/install -c pkg-config /usr/local/bin/pkg-config
/usr/bin/install -c pkg-config /usr/local/bin/pkg-config
/usr/bin/install: cannot create regular file `/usr/local/bin/pkg-config': Permission denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/lavigne_sk8er/Desktop/pkgconfig-0.15.0'
make: *** [install-recursive] Error 1

What's wrong and how do I fix it?
 
Old 01-21-2004, 07:10 PM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
It looks like you didn't make install as root
 
Old 01-21-2004, 07:17 PM   #3
SuSE_User
Member
 
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 74

Original Poster
Rep: Reputation: 15
Um...I have no idea what you mean.
 
Old 01-21-2004, 07:33 PM   #4
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Before typing "make install", type "su", then enter the root password...then type "make install".

The reason for doing this is because applications generally are installed into directories where the user does not have write privel...privle....permission.
 
Old 01-21-2004, 09:08 PM   #5
SuSE_User
Member
 
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 74

Original Poster
Rep: Reputation: 15
Well, your solution worked for that particular tar.gz file I was trying to compile, but when I was trying to I came to the 'make' part of compiling the file libgphoto2-2.1.4-pre1.tar.gz, it gave me this:

linux:/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1 # make
make all-recursive
make[1]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1'
Making all in intl
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/intl'
Making all in libgphoto2_port
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port'
make all-recursive
make[3]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port'
Making all in intl
make[4]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/intl'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/intl'
Making all in po
make[4]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/po'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/po'
Making all in libgphoto2_port
make[4]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/libgphoto2_port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/libgphoto2_port'
Making all in test
make[4]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/test'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/test'
Making all in serial
make[4]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/serial'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/serial'
Making all in usb
make[4]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/usb'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/usb'
Making all in doc
make[4]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/doc'
Dummy target all-local.
make[4]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/doc'
Making all in m4
make[4]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/m4'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port/m4'
make[4]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port'
make[4]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port'
make[3]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port'
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2_port'
Making all in libgphoto2
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/libgphoto2'
Making all in camlibs
make[2]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/camlibs'
Making all in agfa-cl20
make[3]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/camlibs/agfa-cl20'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/camlibs/agfa-cl20'
Making all in aox
make[3]: Entering directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/camlibs/aox'
source='library.c' object='library.lo' libtool=yes \
depfile='.deps/library.Plo' tmpdepfile='.deps/library.TPlo' \
depmode=gcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../intl -I../../libgphoto2_port -I../../libgphoto2_port/libgphoto2_port -I../.. -I../../libgphoto2 -I../../libgphoto2 -I/usr/local/include/libexif -I/usr/local/include -g -O2 -g -Wall -Wmissing-declarations -Wmissing-prototypes -c -o library.lo `test -f 'library.c' || echo './'`library.c
rm -f .libs/library.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../intl -I../../libgphoto2_port -I../../libgphoto2_port/libgphoto2_port -I../.. -I../../libgphoto2 -I../../libgphoto2 -I/usr/local/include/libexif -I/usr/local/include -g -O2 -g -Wall -Wmissing-declarations -Wmissing-prototypes -c library.c -Wp,-MD,.deps/library.TPlo -fPIC -DPIC -o .libs/library.lo
library.c: In function `get_file_func':
library.c:225: parse error before `int'
library.c:239: `header_len' undeclared (first use in this function)
library.c:239: (Each undeclared identifier is reported only once
library.c:239: for each function it appears in.)
make[3]: *** [library.lo] Error 1
make[3]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/camlibs/aox'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1/camlibs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lavigne_sk8er/Desktop/libgphoto2-2.1.4-pre1'
make: *** [all] Error 2

I had already done the 'su' thing earlier while compiling the first file I asked about. How do i solve this?
 
Old 01-21-2004, 09:14 PM   #6
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
You don't need to su for configure and make...just for the actual install.

I'm not sure what the problem is for this particular application, though it looks like you might be missing something.
Did you get any errors from configure?
 
Old 01-21-2004, 09:18 PM   #7
SuSE_User
Member
 
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 74

Original Poster
Rep: Reputation: 15
Umm well actually, while waiting for your reply, I tried installing another .tar.gz file that depends on pkgconfig and it said that pkgconfig wasn't installed...so i guess the 'su' thing didnt work after all. And when I tried installing that tar.gz file, it required me to put in 'su' (i opened a new console)...so..ahhh, any more solutions? could you PM me your AIM sn or MSN Messenger email so we could talk more quickly?
 
Old 01-22-2004, 03:43 PM   #8
SuSE_User
Member
 
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 74

Original Poster
Rep: Reputation: 15
bump
 
Old 08-03-2004, 02:48 AM   #9
VictorVW
LQ Newbie
 
Registered: Aug 2004
Location: Cincinnati, OH, USA.
Distribution: debian
Posts: 1

Rep: Reputation: 0
Regarding your difficulties compiling `libgphoto2': you ran into a bug.

`header_len' is declared illegally in `libgphoto2-2.1.4/camlibs/aox/library.c',
which gcc2.95 chokes on.

You could update to gcc3.x, but since you're new to installing software,
I don't recommend that. An easier solution is to apply the patch found here:

http://mail-index.netbsd.org/netbsd-...2/21/0009.html

I mention this for your benefit, and for Google's benefit, because I couldn't
find this particular problem mentioned anywhere else. Everybody else in
the world must be using gcc3.x except for us. : /

Hmm. I think I'll repeat Mr. van Elst's patch here.

Code:
--- camlibs/aox/library.c.dist	Sat Feb 21 22:34:35 2004
+++ camlibs/aox/library.c	Sat Feb 21 22:34:45 2004
@@ -202,6 +202,7 @@
 			gp_file_adjust_name_for_mime_type (file);
 		}
 		if ((w == 640)){
+			int header_len;
 			/* Stripping useless header */
 			p_data = data + 0x98;
 			/* Picture is mirror-imaged.*/
@@ -222,7 +223,7 @@
 			GP_DEBUG("size of data = %i\n", sizeof(data));
 			GP_DEBUG("size of p_data = %i\n", sizeof(p_data));
 			/* And now create a ppm file, with our own header */
-			int  header_len = snprintf(header, 127, 
+			header_len = snprintf(header, 127, 
 				"P6\n" 
 				"# CREATOR: gphoto2, aox library\n" 
 				"%d %d\n" 
--- camlibs/aox/aox.c.dist	Sat Feb 21 22:35:45 2004
+++ camlibs/aox/aox.c	Sat Feb 21 22:36:27 2004
@@ -39,10 +39,10 @@
 int aox_init (GPPort *port, Model *model, Info *info) 
 {
 	unsigned char c[4];
-	memset(c,0,sizeof(c));
 	unsigned char hi[2];
-	memset (hi,0,2);
 	unsigned char lo[2];
+	memset(c,0,sizeof(c));
+	memset (hi,0,2);
 	memset (lo,0,2);
 
 	GP_DEBUG("Running aox_init\n");
@@ -86,11 +86,12 @@
 
 int aox_get_picture_size  (GPPort *port, int lo, int hi, int n, int k) 
 {
+	unsigned char c[4];
+        unsigned int size;
+
 	GP_DEBUG("Running aox_get_picture_size\n");
 
-	unsigned char c[4];
 	memset (c,0,4);
-        unsigned int size;
 
 	if ( ( (lo) && ( n ==k ) && (k ==0)) ) {
 	    	READ(port, 0x04, 0x1, 0x1, c, 2);
Other questions:

Regarding `su', you should probably pick up an introductory Linux book.
O'Reilly's _Running Linux_ is a very good every-subject-under-one-cover
book. _Learning Red Hat Linux_ is probably good too, if you want something
shorter, and cheap if you can find it used. (I don't know much about SuSE
specifically.)

http://www.oreilly.com/catalog/runux4/
http://www.oreilly.com/catalog/redhat2/index.html

For help with compiling software with `./configure' and `make' and such things,
the best introductory book I've ever seen is _Programming with GNU Software_.
It's a really old book now, but I think it's still a very good overview of
software building on *NIX.

http://www.oreilly.com/catalog/prognu/index.html

Say, how old is this thread, anyway?

Cheers,
VvW
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't install pkgconfig; root problem? Fresha Linux - Software 7 03-21-2012 04:01 PM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 08:09 PM
Help!!! Can't install glib 2.4.7, because the configure script can't find pkgconfig RJARRRPCGP Linux - Newbie 3 11-22-2004 12:20 AM
Help!!! Can't install glib, because configure can't find pkgconfig RJARRRPCGP Linux - Newbie 1 11-20-2004 09:43 PM
Trying to install gaim, won't recognize pkgconfig cmgleipzig Linux - Newbie 5 07-21-2004 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration