Comments (10)
MacPorts installs libraries into a non-standard location. You should tell ./configure
where the library is.
You should use ./configure ----includedir=<MacPorts directory>/include/
For example, ./configure --includedir=/opt/local/include/
if your MacPorts is located at /opt/local/
from twilc.
@SteamedFish I tried that, and I get the same error.
from twilc.
Have you installed ncursesw
library other than ncurses
? ncursesw
is also required. We should add this to the dependencies list.
from twilc.
I have installed both ncursesw
and ncurses
.
from twilc.
Can you post the full information ./configure
prints?
The script works under my Mac.
from twilc.
Sure:
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for cos in -lm... yes
checking for initscr in -lncursesw... no
configure: error: ncursesw not found
The output is the same if I use the --includedir
solution you proposed.
from twilc.
Wired. Can you find /opt/local/include/cursesw.h
on your system? Can you try ./configure --prefix=/opt/local/
?
I don't know what's happening. I'll try find a clean installed Mac to test tomorrow.
It's 01:30 am in China. Have to sleep. Sorry. :-)
from twilc.
Yes, /opt/local/include/cursesw.h
exists. And the solution you posted still doesn't work.
from twilc.
http://dreness.com/wikimedia/index.php?title=How_to_compile_other_software_using_Macports_libraries
This is a guide of how to compile programs using Macports libraries.
I found a clean installed Mac, got the same issue as you, and after I tried this guide it worked.
from twilc.
That worked! Thank you!
from twilc.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twilc.