configure/make/install options for compiling applications from source into /opt/local?

Wolfgang Keller wolfgang.keller.nospam at gmx.de
Thu Sep 21 09:12:30 PDT 2006


> as the Gnumeric package in the Macports repository does apparently not 
> include the Python plugin (as well as a lot of others), I would like to 
> compile Gnumeric from source myself. Such that it is linked against the 
> libraries already in the /opt/local tree and that it is also installed there, 


> of course.
> 
> What options must I pass to configure, make and install to achieve this?
> 
> Such as e.g. --prefix=/opt/local or whatnot?

--prefix=/opt/local isnt enough:

extracted from the output of ./configure --prefix=/opt/local:

*snip*

checking for GTK... yes
checking for GNOME... checking for GNUMERIC... configure: error: Package 
requirements (
        glib-2.0                >= 2.6.0
        gobject-2.0             >= 2.6.0
        gmodule-2.0             >= 2.6.0
        libgsf-1                >= 1.13.2
        libgoffice-1            >= 0.2.1
        libgoffice-1             < 0.3.0
        libxml-2.0              >= 2.4.12
        pango                   >= 1.8.1
        pangoft2                >= 1.8.1
 
        gtk+-2.0                >= 2.6.0
        libglade-2.0            >= 2.3.6
        libgnomeprint-2.2       >= 2.8.2
        libgnomeprintui-2.2     >= 2.8.2
        libart-2.0              >= 2.3.11
) were not met:

Requested 'libgsf-1 >= 1.13.2' but version of libgsf-1 is 1.10.1
No package 'libgoffice-1' found
No package 'libgoffice-1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GNUMERIC_CFLAGS
and GNUMERIC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

It _does_ find GTK, but _not_ the rest, although all dependencies _are_ 
installed. All in the same tree. :-(

And the error message about libgsf is _wrong_, libgsf in Macports is version 
1.14.0.

A package named "libgoffice" doesn't exist.

A package named goffice with version 0.2.1 does exist and it _is_ installed.

Sincerely,

Wolfgang Keller

-- 
My email-address is correct.
Do NOT remove ".nospam" to reply.




More information about the macports-users mailing list