You are not logged in.

#1 2009-11-19 21:54:58

addr
Member
From: Manitoba
Registered: 2008-12-04
Posts: 73

Environment variables : solved

How do I set

 DEPS_CFLAGS   DEPS_LIBS

I am trying to build gnome-color-chooser.

Last edited by addr (2009-11-22 22:14:17)


x86_64 Arch Openbox, Debian PEKwm

Offline

#2 2009-11-19 22:08:48

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Environment variables : solved

i prefer to set the env variable limited in scope to exactly the command that needs it.  something like

ENVAR="some_value" command_that_uses_it

if you need to use the env variable for multiple commands, i believe you need to export it but i don't know exactly how wide-reaching / permanent / undoable that action is (or if you care).

export ENVAR="some_value"

commands_that_use_it
other_commands_will_use_it
...

this is how things like PATH and EDITOR get set in bashrc.

Offline

#3 2009-11-21 20:50:26

addr
Member
From: Manitoba
Registered: 2008-12-04
Posts: 73

Re: Environment variables : solved

I'm still doing something wrong. Here is the error message:-

checking for DEPS... configure: error: in `/tmp/yaourt-tmp-sandy/aur-gnome-color-chooser/gnome-color-chooser/src/gnome-color-chooser-0.2.5':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config
Alternatively, you may set the environment variables DEPS_CFLAGS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details..

x86_64 Arch Openbox, Debian PEKwm

Offline

#4 2009-11-21 20:51:39

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Environment variables : solved

To me it looks like you're overlooking the real problem. Is pkgconfig installed, like the configure script complains about?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2009-11-21 21:49:17

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Environment variables : solved

If you're building packages, make sure the base-devel package group is installed - it includes pkgconfig and all the other good stuff you need to compile things.

Offline

#6 2009-11-22 22:13:48

addr
Member
From: Manitoba
Registered: 2008-12-04
Posts: 73

Re: Environment variables : solved

I didn't have base-devel.

All OK now. Thanks


x86_64 Arch Openbox, Debian PEKwm

Offline

Board footer

Powered by FluxBB