Ticket #35409 (closed defect: fixed)
octave: fatal error: curl/types.h: No such file or directory
| Reported by: | bobm.dsp@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.1.2 |
| Keywords: | mountainlion | Cc: | vic@…, mechgyver@…, lawrence.ong@…, onurdomanic@…, AlonzoQuixote@…, nils.hjelte@…, jmosorioguillen@…, bhadder@…, ahlid@…, waterson@…, MacPorts@… |
| Port: | octave |
Description (last modified by ryandesign@…) (diff)
When trying to install port octave on Mountain Lion I'm getting an error:
Error: org.macports.build for port octave returned: command execution failed
And finally:
Error: Processing of port octave failed
This is on Mountain Lion. I have tried the following, without success:
- Removed MacPorts completely
- Reinstalled MacPorts using 2.1.2 Mountain Lion package
- Confirmed Xcode command line tools have been installed
- sudo xcodebuild -license (this fixed some prior problems)
- sudo port clean octave and then attempted to reinstall
- Changed the server in sources.conf to “http://www.macports.org/files/ports.tar.gz [default]“ (this fixed other prior problems)
This all helped with problems getting dependencies built. But no luck yet with octave or octave-devel. I will attach the log file.
Attachments
Change History
comment:1 Changed 10 months ago by ryandesign@…
- Keywords mountainlion added; octave mountain lion removed
- Description modified (diff)
- Summary changed from Processing of port octave failed on Mountain Lion to octave: fatal error: curl/types.h: No such file or directory
The relevant error in the log seems to be:
fatal error: curl/types.h: No such file or directory
Try the port octave-devel instead; it's a newer version that might work better.
Changed 10 months ago by bobm.dsp@…
- Attachment octave-devel main.log added
octave-devel main.log file
comment:2 Changed 10 months ago by bobm.dsp@…
Thank you. I tried octave-devel and got an error as well. The main.log file is attached here.
I'd prefer to use octave-devel, but when I tried octave-devel on Lion I was unable to get it to recognize the functions from the octave-signal port. With the octave port, I was able to use the octave-signal functions.
comment:3 Changed 10 months ago by vic@…
I cannot compile octave-devel on Mountain Lion. I have recompiled MacPorts from scratch and compiled all the dependencies for octave-devel, but octave-devel won't compile. I'm attaching the log of my (clean) installation attempt
comment:9 Changed 10 months ago by lawrence.ong@…
One solution is to remove the line
#include <curl/types.h>
in
/opt/local/var/macports/build/_Users_lolc_macports_svn.macports.org_trunk_dports_math_octave/octave/work/octave-3.2.4/src/DLD-FUNCTIONS/urlwrite.cc
This solution was documented at http://lists.gnu.org/archive/html/octave-bug-tracker/2011-07/msg00031.html.
comment:15 Changed 10 months ago by kitchen.andy@…
Attaching patch and Portfile to make octave compile with newer curl.
comment:19 Changed 9 months ago by MacPorts@…
The above advice did not work for me (my change in the source was ignored), but the following hack did work:
sudo touch /opt/local/include/curl/types.h
comment:20 Changed 8 months ago by nicos@…
- Status changed from new to closed
- Resolution set to fixed
Patch committed in r97830.


main.log associated with octave build error