LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2004, 02:19 PM   #1
BeetleBailey
LQ Newbie
 
Registered: Jun 2004
Posts: 10

Rep: Reputation: 0
installing libmovtar-0.1.3 with glib-2.4.2


okay, I'm a new Linux user and i'm about ready to throw this machine in the trash!
I'm trying to install MJPEG tools which has about a dozen library dependancies, none of which came with my Linux distribution (Pink Tie). I got all dependancies installed except a library called libmovtar-0.1.3 which itself has a dependancy (glib). I've installed glib & and that seems to be installed correctly and working fine, or at least it seems to think so. However when I try to run the ./configure script for libmovtar it errors out with the following:

>checking dependency style of gcc... gcc3
>checking for glib-config... /usr/src/pkgconfig-0.15.0/glib-1.2.8/glib-config
>checking for GLIB - version >= 1.2.0... no
>*** Could not run GLIB test program, checking why...
>*** The test program failed to compile or link. See the file config.log for the
>*** exact error that occured. This usually means GLIB was incorrectly installed
>*** or that you have moved GLIB since it was installed. In the latter case, you
>*** may want to edit the glib-config script: /usr/src/pkgconfig-0.15.0/glib-1.2.8/glib-config
>configure: error: "You need to install GLib - you can find it on gtk. org"

So, it finds glib-config, but says that it's lower than version 1.2.0
This Linux distribution came with 1.2.8, and the one that I just installed is glib-2.4.2; both of which are over 1.2.0. WHY WON'T THIS WORK??? If anyone has ran into this problem before and has some info, please reply.
 
Old 06-23-2004, 02:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What did it say in config.log?
 
Old 06-24-2004, 08:08 AM   #3
BeetleBailey
LQ Newbie
 
Registered: Jun 2004
Posts: 10

Original Poster
Rep: Reputation: 0
The following is a little piece of the config.log file:
and then it starts to list the actual code of that program where the errors are.
{it's a bit long, b/c I wasn't sure exactly what you were looking for}

configure:2056: checking dependency style of gcc
configure:2118: result: gcc3
configure:2172: checking for glib-config
configure:2201: result: /usr/src/glib-2.4.2/bin/glib-config
configure:2209: checking for GLIB - version >= 1.2.0
configure:2310: gcc -o conftest -g -O2 conftest.c >&5
configure:2235:18: glib.h: No such file or directory
configure: In function `main':
configure:2248: warning: assignment makes pointer from integer without a cast
configure:2254: `glib_major_version' undeclared (first use in this function)
configure:2254: (Each undeclared identifier is reported only once
configure:2254: for each function it appears in.)
configure:2254: syntax error before ')' token
configure:2255: `glib_minor_version' undeclared (first use in this function)
configure:2255: syntax error before ')' token
configure:2256: `glib_micro_version' undeclared (first use in this function)
configure:2256: syntax error before ')' token
configure:2259: syntax error before ',' token
configure:2270: `GLIB_MAJOR_VERSION' undeclared (first use in this function)
configure:2271: `GLIB_MINOR_VERSION' undeclared (first use in this function)
configure:2272: `GLIB_MICRO_VERSION' undeclared (first use in this function)
configure:2313: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 2233 "configure"
#include "confdefs.h"

#include <glib.h>
#include <stdio.h>
#include <stdlib.h>

int
main ()
{
int major, minor, micro;
char *tmp_version;

system ("touch conf.glibtest");

/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = g_strdup("1.2.0");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "1.2.0");
exit(1);
}

if ((glib_major_version != ) ||
(glib_minor_version != ) ||
(glib_micro_version != ))
{
printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
, , ,
glib_major_version, glib_minor_version, glib_micro_version);
printf ("*** was found! If glib-config was correct, then it is best\n");
printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
(glib_minor_version != GLIB_MINOR_VERSION) ||
(glib_micro_version != GLIB_MICRO_VERSION))
{
printf("*** GLIB header files (version %d.%d.%d) do not match\n",
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
printf("*** library (version %d.%d.%d)\n",
glib_major_version, glib_minor_version, glib_micro_version);
}
else
{
if ((glib_major_version > major) ||
((glib_major_version == major) && (glib_minor_version > minor)) ||
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
glib_major_version, glib_minor_version, glib_micro_version);
printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the glib-config shell
script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
printf("*** correct copy of glib-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}

configure:2338: result: no
configure:2368: gcc -o conftest -g -O2 conftest.c >&5
configure:2355:18: glib.h: No such file or directory
configure: In function `main':
configure:2361: `glib_major_version' undeclared (first use in this function)
configure:2361: (Each undeclared identifier is reported only once
configure:2361: for each function it appears in.)
configure:2361: `glib_minor_version' undeclared (first use in this function)
configure:2361: `glib_micro_version' undeclared (first use in this function)
configure:2371: $? = 1
configure: failed program was:
#line 2353 "configure"
#include "confdefs.h"

#include <glib.h>
#include <stdio.h>

int
main ()
{
return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
;
return 0;
}
configure:2408: error: "You need to install GLib - you can find it on http://www.gtk.org"

## ----------------- ##
## Cache variables. ##
## ----------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_objext=o
ac_cv_path_GLIB_CONFIG=/usr/src/glib-2.4.2/bin/glib-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3

## ------------ ##
## confdefs.h. ##
## ------------ ##

#define PACKAGE "libmovtar"
#define VERSION "0.1.3"


configure: exit 1
**********************************************************
Thanks for taking a look at this, the whole thing is really frustrating me (if you couldn't tell by my original post).
 
  


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
Installing glib 2.8.3 Codegen Fedora 1 11-06-2005 05:30 PM
Installing GLIB 2.6.2 over 2.0 net-titi Debian 5 02-26-2005 10:22 AM
need help installing glib 2.4 ziggie216 Linux - Software 5 10-19-2004 01:02 PM
[GLIB] Problems Installing GLIB ThA_eLMo_GoD Linux - Newbie 2 09-04-2004 06:27 PM
Glib not installing richcoosa19 Linux - Software 1 09-22-2003 05:48 PM


All times are GMT -5. The time now is 02:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration