[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hello, a question on Bison build.

From: Akim Demaille
Subject: Re: Hello, a question on Bison build.
Date: Tue, 31 Dec 2013 11:00:52 +0100

Le 24 déc. 2013 à 11:04, Fang Liu <address@hidden> a écrit :

> Hi,


> I in fact doing  part of some support  to provide tool built such as  Bison 
> to other team. I need to download its source and build it local, then install 
> etc... but problem is that, after we build it(lib/bin ..), the user of it 
> need to use it at otherswhere(rather than the same host than us).
> I notice that, at the build/install for Bison, we need specify the 
> datarootdir etc for the .configure file. which provide an absolut path into 
> the build and which used later in binary of Bison. (dir inside 'Share' for 
> instance).
> But since this path in build we specified would be different from the 
> people(user)'s host's real dir. And it rsync later to other ppl's pc, Then 
> this path would not work for them.
> My question is that, is it possible  to specify a relatif path while 
> compile/install Bison,(for example relatif to Bison binary or other working 
> dir). So this could be more flexible in the user side later? if else we have 
> to provide the same dir structure exact as the built one.
> Could you provide some suggestion or if there are already some solution? 
> Thanks in advance.
> Happy Christmas to you!

Thanks Fang,

So, if I am reading your question correctly, the question is whether
bison is relocatable.  The answer is no, it is not, it is meant to
be used where it is installed, as most Unix tools.

However, there are a few environment variables (such as LD_LIBRARY_PATH,
etc.) which you may tweak to have Bison work from elsewhere.  Have
a look at the tests/bison script for a start in the distro, it can
be a starting point to write a wrapper.

I would however suggest to use a real packaging system instead.
If you can.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]