Note that there are some explanatory texts on larger screens.

plurals
  1. POGCC error when installing ncurses on OS X 10.8
    primarykey
    data
    text
    <p>I'm trying to install <a href="https://www.gnu.org/software/ncurses/ncurses.html" rel="nofollow"><code>ncurses</code></a> 5.9 on OS X 10.8 with GCC 4.9 installed. No errors or warnings show up when I run <code>./configure</code> in the <code>ncurses</code> directory, but when I run <code>make</code>, I get <code>gcc: error: unrecognized command line option ‘-no-cpp-precomp’</code>. Upon googling the issue (and trying it out), I found that <code>--no-cpp-precomp</code> (with two dashes, i.e in long flag form) is a valid command.</p> <p>I'm not sure what was prompting GCC to run the invalid command – whether it was <code>make</code>, or if it was a command specified in <code>ncurses</code> itself.</p> <p>Is there any way to fix this? If so, how?</p> <p>EDIT: I tried changing the reference in the <code>./configure</code> file from <code>-no-cpp-precomp</code> to <code>--no-cpp-precomp</code> manually, using a text editor, and was met with this, despite GCC seemingly accepting the <code>--no-cpp-precomp</code> option. After that, I tried running <code>autoreconf</code>, and got this:</p> <pre><code>configure:6558: error: possibly undefined macro: AC_DIVERT_HELP If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /opt/local/bin/autoconf failed with exit status: 1 </code></pre> <p>After running it with the <code>m4_pattern_allow</code> option:</p> <pre><code>autoreconf: 'configure.ac' or 'configure.in' is required </code></pre> <p>After running <code>./configure &amp;&amp; make</code> anyway:</p> <pre><code>cd man &amp;&amp; make DESTDIR="" all sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail &gt;terminfo.5 cd include &amp;&amp; make DESTDIR="" all cat curses.head &gt;curses.h AWK=gawk sh ./MKkey_defs.sh ./Caps &gt;&gt;curses.h sh -c 'if test "chtype" = "cchar_t" ; then cat ./curses.wide &gt;&gt;curses.h ; fi' cat ./curses.tail &gt;&gt;curses.h gawk -f MKterm.h.awk ./Caps &gt; term.h sh ./edit_cfg.sh ../include/ncurses_cfg.h term.h ** edit: HAVE_TCGETATTR 1 ** edit: HAVE_TERMIOS_H 1 ** edit: HAVE_TERMIO_H 0 ** edit: BROKEN_LINKER 0 cd ncurses &amp;&amp; make DESTDIR="" all gcc -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DUSE_BUILD_CC -DHAVE_CONFIG_H -I../ncurses -I. -D_DARWIN_C_SOURCE -DNDEBUG -I. -I../include -I/usr/local/include/ncurses -O2 --param max-inline-insns-single=1200 --no-cpp-precomp ./tinfo/make_hash.c -Wl,-search_paths_first gcc: error: unrecognized command line option ‘--no-cpp-precomp’ make[1]: *** [make_hash] Error 1 make: *** [all] Error 2 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload