Compiling and using master on macOS
Daniel
xracoonx at gmx.de
Sun Jul 12 20:11:40 UTC 2020
On 2020-07-11 12:57, Enrico Forestieri wrote:
> On Sat, Jul 11, 2020 at 09:07:28AM +0200, Daniel wrote:
>>
>> bash-3.2$ sh autogen.sh
>> : command not found
>> : command not found:
>> : command not found:
>> 'utogen.sh: line 18: syntax error near unexpected token `in
>> 'utogen.sh: line 18: `case $automake_version in
>
> I think you may have wrong line endings in autogen.sh. Try running file
> on it. If you get
>
> $ file autogen.sh
> autogen.sh: POSIX shell script, ASCII text executable
>
> I am wrong, otherwise if you get
>
> $ file autogen.sh
> autogen.sh: POSIX shell script, ASCII text executable, with CRLF line terminators
>
> then you can try
>
> $ dos2unix autogen.sh
>
> to get rid of the wrong line endings. In this case, check your git
> configuration about the setting of "autocrlf". You may have it configured
> for Windows instead of unix.
>
Thanks, that seems to have helped. By default there is no dos2unix
command available on macOS but I could install it via Homebrew:
% brew install dos2unix
And now autogen seems to work:
% sh autogen.sh
Using automake (GNU automake) 1.16.2
Using autoconf (GNU Autoconf) 2.69
Building macros...
Building config header template...
Building Makefile templates...
configure.ac:48: installing 'config/ar-lib'
configure.ac:48: installing 'config/compile'
configure.ac:18: installing 'config/config.guess'
configure.ac:18: installing 'config/config.sub'
configure.ac:34: installing 'config/install-sh'
configure.ac:34: installing 'config/missing'
3rdparty/boost/Makefile.am: installing 'config/depcomp'
lib/lyx2lyx/Makefile.am:10: installing 'config/py-compile'
parallel-tests: installing 'config/test-driver'
Building configure...
Building po/POTFILES.in...
run "./configure && make"
I'll look into the next steps tomorrow.
Daniel
More information about the lyx-devel
mailing list