[Gretl-users] Building Gretl on MacOS

Allin Cottrell cottrell at wfu.edu
Tue Nov 22 17:24:32 EST 2016


On Sat, 19 Nov 2016, Henrique Andrade wrote:

> Em 19 de novembro de 2016, Allin escreveu:
>
> On Fri, 18 Nov 2016, Henrique Andrade wrote:
>>
>> 2016-11-18 1:49 GMT-02:00 Allin Cottrell <cottrell at wfu.edu>:
>>>
>>> On Fri, 18 Nov 2016, Henrique Andrade wrote:
>>>>
>>>> Dear Gretl Community,
>>>>>
>>>>> I'm trying for the first time build Gretl on my MacOS. When I execute
>>>>> the
>>>>> command ./configure I get an error:
>>>>>
>>>>> "Please install GMP and then reconfigure gretl.
>>>>> GMP is available from http://gmplib.org/"
>>>>>
>>>>> I already have GMP installed (using Brew). How can I fix this?
>>>>>
>>>>
>>>> You'll probably have to specify where your GMP installation is, using the
>>>> configure flag --with-gmp-prefix=<wherever>.
>>>>
>>>
>>> Thanks Allin! But now there is another problem. After the command:
>>>
>>> ./configure --prefix=/Users/henrique/Desktop/gretl-dev
>>> --with-gmp-prefix=/usr/local/Cellar/gmp/6.1.1
>>> --with-mpfr-prefix=/usr/local/Cellar/mpfr/3.1.5
>>>
>>> I get:
>>>
>>> gretlcli.c:437:5: error: use of undeclared identifier 'rl_done'
>>>    rl_done = 1;
>>>    ^
>>> 1 error generated.
>>> make[1]: *** [gretlcli.o] Error 1
>>> make: *** [cli] Error 2
>>>
>>
>> I guess that either (a) if you have the GNU readline library installed you
>> need to flag where that is, via
>>
>> --with-readline-prefix=<somewhere>
>>
>> or (b) you may disable readline support in gretlcli by
>>
>> --without-readline
>>
>
> After
>
> <command>
> ./configure --prefix=/Users/henrique/Desktop/gretl-dev --without-readline
> </command>
>
> And
>
> <command>
> make
> </command>
>
> I get
>
> <output>
> make -C share
> make[1]: Nothing to be done for `all'.
> make -C xdg
> make[1]: Nothing to be done for `all'.
> </output>

You might want to check that the whole build is coherent by doing 
"make clean" first, then "make".

>> Thanks for persevering with an independent build on OS X!
>
> Who needs to thank you it's me for your patience and kindness help ;-)

Thanks, all part of the service!

> One simple question arises on my mind just now: What I expect to achieve
> after building? I know that isn't a Gretl.app. But it will generate a GUI
> or CLI version os Gretl?

If all goes well, you should get both the CLI program, gretlcli, and 
the GUI one, gretl.

Allin


More information about the Gretl-users mailing list