I&#39;m on a Mac, and trying to install readline through cabal. I installed the readline library through macports and thus tried the command below. However, readline is still not found. Are there other options I can try? Thank you.<div>

<br></div><div><div>$ cabal install readline --extra-include-dirs=/opt/local/include/ --extra-lib-dirs=/opt/local/lib/</div><div>Resolving dependencies...</div><div>Configuring readline-1.0.1.0...</div><div>checking for gcc... gcc</div>

<div>checking for C compiler default output file name... a.out</div><div>checking whether the C compiler works... yes</div><div>checking whether we are cross compiling... no</div><div>checking for suffix of executables... </div>

<div>checking for suffix of object files... o</div><div>checking whether we are using the GNU C compiler... yes</div><div>checking whether gcc accepts -g... yes</div><div>checking for gcc option to accept ISO C89... none needed</div>

<div>checking for GNUreadline.framework... checking for readline... no</div><div>checking for tputs in -lncurses... yes</div><div>checking for readline in -lreadline... yes</div><div>checking for rl_readline_version... yes</div>

<div>checking for rl_begin_undo_group... no</div><div>configure: error: readline not found, so this package cannot be built</div><div>See `config.log&#39; for more details.</div><div>cabal: Error: some packages failed to install:</div>

<div>readline-1.0.1.0 failed during the configure step. The exception was:</div><div>exit: ExitFailure 1</div><div><br></div></div>