LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-13-2012, 09:52 AM   #1
Bloehdian
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Rep: Reputation: Disabled
Problems installing gtk+ due to missing/outdated gettext-lib


Hello folks,

I am trying to install the gtk+ C-API on a Red Hat 4.1.2-46 (Kernel: 2.6.18-164.el5) box. I have no priviledged account on this machine and I want to install the stuff in a subdirectory under my home directory, since the system wide accessible gtk+-library seems to be too old to work properly with the Gtk-Perl binding I want to deploy.

One of the dependencies of gtk+ is Glib and the trouble starts with this. Running configure by issueing the following command line:

Code:
./configure --prefix=$PRJ/gtk+/glib
(with $PRJ containing the path to my project's directory (residing under my home directory))

ends with an exit status of 0, although config.log reveals quite a lot of error messages mainly due to missing header files.

But the subsequent make fails with the following error messages:

Code:
/usr/bin/msgfmt -o test.mo ./de.po; \
        /bin/mkdir -p de/LC_MESSAGES; \
        cp -f test.mo de/LC_MESSAGES
./de.po:15: keyword "msgctxt" unknown
./de.po:15:8: parse error
/usr/bin/msgfmt: found 2 fatal errors
cp: cannot stat `test.mo': No such file or directory
The web says that this is probably due to libintl (providing the gettext()-function) being too old.

Therefore I installed the GNU gettext-package in the following location:

$PRJ/gtk+/gettext

and retried the Glib-installation as follows:

Code:
export CPPFLAGS="-I$PRJ/gtk+/gettext/include"
export LDFLAGS="-L$PRJ/gtk+/gettext/lib"
./configure --prefix=$PRJ/gtk+/glib
make
But to no avail (same error messages as above).

The gettext-package I installed "locally" is of version 0.18.1.1, Glib has the version number 2.25.10.

My experience with the autotools and compilation of c-programs is very confined, therefore I guess I a missing something out with the environment/flags for the compiler/linker.

Any help is appreciated.

Cheers


Bloehdian
 
Old 12-14-2012, 10:17 AM   #2
Bloehdian
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Meanwhile I found out that the error messages are probably due to the fact that the Makefile still uses /usr/bin/msgfmt as the path to the msgfmt-binary instead of $PRJ/gettext/bin/msgfmt (which would be the program compatible with the gettext-library i specified).

So, my task now is to tell configure where to find the gettext-binaries.

How do I accomplish this?
 
  


Reply



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 XBMC, missing gettext-lib?? lascunas Linux - Software 8 04-08-2011 04:51 AM
Gettext - Bash with GTK KrzysieQ Programming 3 07-02-2009 08:00 AM
problems in installing kde 3.21 missing lib Nadim Slackware 1 04-19-2004 06:48 PM
gtk+-2.2.4 not installing due to lack of glib hamish Linux - Software 3 09-17-2003 11:24 AM
GTK+ outdated version? Netrack Linux - General 4 07-09-2003 01:37 PM

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

All times are GMT -5. The time now is 11:31 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