Has guile version check changed?

2006-10-21 Thread David Reiser
When I run:

guile16-build env PATH=/opt/bin:$PATH LIBRARY_PATH=/sw/lib CPATH=/sw/ 
include ./configure --enable-error-on-warning --enable-compile- 
warnings --enable-opt-style-install --prefix=/opt/gnucash-svn -- 
enable-debug --enable-etags --enable-doxygen --enable-ofx --with-ofx- 
prefix=/opt --enable-hbci --with-aqbanking-dir=/opt

I get:

checking whether guile works... yes
checking for guile - 1.6.0 = version  99.99.99... no:
configure: WARNING: guile version check failed
configure: error:

   guile does not appear to be installed correctly, or is not in the
   correct version range.  Perhaps you have not installed the guile
   development packages?  Gnucash requires at least version 1.6 to  
build.


Without the PATH=/opt/bin:$PATH (but with a g-wrap prefix  
specification) I could successfully configure on my Mac prior to the  
swig change.

guile16-build is:

#! /bin/sh
GUILE=guile-1.6
GUILE_CONFIG=guile-1.6-config
GUILE_TOOLS=guile-1.6-tools
PATH=/sw/share/guile/1.6/scripts/binoverride:$PATH
export GUILE
export GUILE_CONFIG
export GUILE_TOOLS
export PATH
eval $@


And I do have both guile16 and guile16-dev installed.

My addition of the PATH=/opt/bin:$PATH enables configure to find  
swig, but have I trashed the route to guile-1.6?

--
David Reiser
[EMAIL PROTECTED]
Mac 10.4.8 PPC, gcc 4.0.1



___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Has guile version check changed?

2006-10-21 Thread David Reiser

On Oct 21, 2006, at 12:29 PM, Chris Shoemaker wrote:


 What do you get from:
 $ guile16-build env PATH=/opt/bin:$PATH $GUILE_CONFIG --version

% guile16-build env PATH=/opt/bin:$PATH $GUILE_CONFIG --version
tcsh: GUILE_CONFIG: Undefined variable.

% guile16-build env PATH=/opt/bin:$PATH guile-config --version
env: guile-config: No such file or directory

% guile16-build env LIBRARY_PATH=/sw/lib CPATH=/sw/include  
$GUILE_CONFIG --version
tcsh: GUILE_CONFIG: Undefined variable.

% guile16-build env LIBRARY_PATH=/sw/lib CPATH=/sw/include guile- 
config --version
guile-config - Guile version 1.6.7

so having another PATH command is overriding the guile16-build  
settings. Rats. I suppose I could just install swig in /usr/local  
(but that will eventually give me trouble with fink).

I did switch to bash, and it seemed to be giving at least similar  
results.



 Do you have an older guile in /opt/bin?

Nope. If I had an older guile, it would be in /sw, but it is not  
installed.

 -chris

--
David Reiser
[EMAIL PROTECTED]

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Has guile version check changed?

2006-10-21 Thread Derek Atkins
Probably guile16-build forcibly sets the path, or sets it in
a way that overrides your swig.

-derek

Quoting David Reiser [EMAIL PROTECTED]:


 On Oct 21, 2006, at 2:19 PM, David Reiser wrote:


 On Oct 21, 2006, at 12:29 PM, Chris Shoemaker wrote:


 What do you get from:
 $ guile16-build env PATH=/opt/bin:$PATH $GUILE_CONFIG --version

 % guile16-build env PATH=/opt/bin:$PATH $GUILE_CONFIG --version
 tcsh: GUILE_CONFIG: Undefined variable.

 % guile16-build env PATH=/opt/bin:$PATH guile-config --version
 env: guile-config: No such file or directory

 But,
 % guile16-build env PATH='/opt/bin:$PATH' guile-config --version
 guile-config - Guile version 1.6.7

 file under Duh! (but don't quote me on that...)
 Dave
 --
 David Reiser
 [EMAIL PROTECTED]

 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel




-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Has guile version check changed?

2006-10-21 Thread Derek Atkins
Actually, 'env' does export to children.  That's the whole point of 'env'.

man env for more info.

-derek

Quoting Chris Shoemaker [EMAIL PROTECTED]:


 On Sat, Oct 21, 2006 at 02:19:36PM -0400, David Reiser wrote:

 On Oct 21, 2006, at 12:29 PM, Chris Shoemaker wrote:

 
 What do you get from:
 $ guile16-build env PATH=/opt/bin:$PATH $GUILE_CONFIG --version

 % guile16-build env PATH=/opt/bin:$PATH $GUILE_CONFIG --version
 tcsh: GUILE_CONFIG: Undefined variable.

 This already shows the problem, doesn't it?  And what does it do
 without the PATH=/opt/bin:$PATH ?  I think those environment variables
 aren't making it to the children processes.


 % guile16-build env PATH=/opt/bin:$PATH guile-config --version
 env: guile-config: No such file or directory

 But you should've tested with guile-1.6-config, no?

 % guile16-build env LIBRARY_PATH=/sw/lib CPATH=/sw/include
 $GUILE_CONFIG --version
 tcsh: GUILE_CONFIG: Undefined variable.

 % guile16-build env LIBRARY_PATH=/sw/lib CPATH=/sw/include guile-
 config --version
 guile-config - Guile version 1.6.7

 Ok, but that's not the value you set to GUILE_CONFIG.


 so having another PATH command is overriding the guile16-build
 settings.

 I suspect that's not exactly what's happening.  Try:

 % guile16-build env PATH=/opt/bin:$PATH echo $PATH

 I suspect you won't see the /opt/bin.  Perhaps because using env
 like that doesn't export the variables to children processes.

 So, just don't use env.  Put all your variables in one file, and
 make sure you export them.  It should work.

 -chris
 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel




-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Has guile version check changed?

2006-10-21 Thread Chris Shoemaker
On Sat, Oct 21, 2006 at 06:29:53PM -0400, Derek Atkins wrote:
 Actually, 'env' does export to children.  That's the whole point of 'env'.
 
 man env for more info.

Doh.  Of course it does.  However...

$ env FOO=bar echo $FOO 

will _not_ show the bar, but for a totally different reason.  The
variable substitution will occur _before_ env is executed, so:

% guile16-build env PATH=/opt/bin:$PATH echo $PATH

is just a really dumb test.  Looks like David figured things out in
spite of my help, though. :)

-chris
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel