• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to install without a makefile (GTK)? Help!

 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My redhat enterprise 4 had gtk installed, works fine for me.

However, I have a Fedora new machine now, which does not have gtk for developer installed.

I downloaded gtk+-2.9.4.tar.gz and also gtk+-2.8.19.tar.gz

I tried "./configure" and it works fine.
However, I could not do a "make"

It conplains "No targets specified and no makefile found..."

I checked the directory, there are "Makefile.am" "Makefile.in", but, there is no "Makefile" nor "makefile" in 2.9.4 nor 2.8.19

I must missed something really simple or obvious. Please help!!!
There must be a simple way to install...

Thanks in advance!!!
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11887
203
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roseanne,

Is there a reason you are not installing the gtk-devel rpm?

I would normally expect the Makefile to be created as a result of running ./configure - did you run it before or after trying to run make?

Did you get any warnings or errors when you ran ./configure?

Can you run ./configure --help to see if there are any options you must provide? (There are some Linux packages that dont set defaults as they feel that defaults are dangerous - but they usually give warnings when you run ./configure without options.)

Regards, Andrew
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm confused. What are you attempting to build here?
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Andrew

You are absolutely right!!!

I ignored the error message on ./configure.

Now I have installed 4-5 software, it is still not enough. The Cairo cannot be build, since Xlib (?) is not there...

I do have a X11R6 directory...I don't know what to install to get Xlib to make cairo configuable...

I installed pkg-config, freetype, fontconfig, glib, stucked with cairo since pango need it, and gtk need pango. However, Cairo needs Xlib...

Oh, my god, I don't know what else are needed in my way...

Anybody had similar experiences, please help!

Thanks in advance!!!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you have some sort of constraints, I'd recommend you use YUM. If I say something like "yum install firefox", YUM will figure out firefox's dependencies and add them to the list of RPMs that it will download and install. The same applies to development packages, not just finished binaries.

In addition to the primary YUM repositories, there are several 3d-party ones (for example, I get mplayer and MythTV from Dag Weiers). And, if you're cooking up packages of your own, you can construct your own RPMs and build your own local YUM repository.

Since YUM is RPM-based, obviously the more parts of your system that either come in RPMs or that you can wrap as RPMs, the easier life gets. But if you're working on a professional-grade software release for Fedora, CentOS and/or RHEL (also SuSe, IIRC), having a set of SRPMs for a project isn't just handy, it makes it easier to do disaster recovery style rebuilds.
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim!!!

I realized I have a long way of learning to go...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic