Can't selfupdate -- libcurl present but not found
I have a persistent issue with MacPorts 1.5.0. selfupdate to 1.520 fails on a MacBook Pro running OS X 10.4.10. Multiple reinstalls of MacPorts 1.5.0 have not solved it. Incidentally, although I've moved all the directories named in the FAQ for uninstalling, I notice that the installer UI's last screen button text always says "Upgrade", not "Install", though the panel body text says "...perform a basic installation...". Other MacPorts 1.5.0 installations on two PowerPC PowerBook G4s on the same LAN (one Titanium running 10.3.9, one Aluminum running 10.4.10) managed to selfupdate to 1.520 correctly. I guess it's unlikely that it's an Intel-only bug -- it would have been spotted long ago -- so I guess there's something wrong with where/how I have curl installed on the MBP. Here's the error message:
selfupdate
MacPorts base version 1.5 installed Downloaded MacPorts base version 1.520 Configuring, Building and Installing new MacPorts base Error: /opt/local/bin/port: selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/ rsync.macports.org/release/base && ./configure --prefix=/opt/local -- with-install-user=root --with-install-group=admin --with-tclpackage=/ Library/Tcl && make && make install" returned error 1 Command output: checking for copyfile... yes checking if readlink conforms to POSIX 1003.1a... yes ... lots of checks ... checking whether tclsh was compiled with threads... yes checking for curl-config... no configure: error: cannot find curl-config. Is libcurl installed? Here's my curl locations and other relevant stuff: % echo $PATH /opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/usr/local/bin:/usr/ local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin % where curl /opt/local/bin/curl # MacPorts /sw/bin/curl # Fink % /opt/local/bin/curl --version curl 7.16.4 (i386-apple-darwin8.10.1) libcurl/7.16.4 zlib/1.2.3 Protocols: tftp ftp telnet dict http file Features: Largefile libz % /sw/bin/curl --version curl 7.15.3 (powerpc-apple-darwin8.4.0) libcurl/7.15.3 OpenSSL/0.9.7l zlib/1.2.3 Protocols: tftp ftp telnet dict ldap http file https ftps Features: IPv6 Largefile NTLM SSL libz % tcsh --version # MacPorts' tcsh, not Darwin's or Fink's tcsh 6.15.00 (Astron) 2007-03-03 (i386-apple-darwin) options wide,nls,dl,al,kan,rh,color,filec I've googled the error message several times over the last month, hoping someone else might have had (and solved) the same problem, but without luck. I've scanned this lists archive, I've tried the verbose switch, I've turned off Little Snitch, I've read every word on the MacPorts wiki. Any ideas would be gratefully received. TIA, Phil -- Phil Hudson PGP key available
On Oct 15, 2007, at 12:06 PM, Philip Hudson wrote:
configure: error: cannot find curl-config. Is libcurl installed?
curl-config should be in /usr/bin (it is provided by the BSD.pkg) -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
On 10/15/07, Philip Hudson <phil.hudson@iname.com> wrote:
/opt/local/bin/curl # MacPorts /sw/bin/curl # Fink
MacPorts and fink are not guaranteed to play well together. If you re-export your PATH to remove references to /sw do you get on any better? -- Paul Beard / www.paulbeard.org/ <paulbeard@gmail.com/paulbeard@mac.com>
On Oct 15, 2007, at 11:06, Philip Hudson wrote:
I have a persistent issue with MacPorts 1.5.0.
selfupdate to 1.520 fails on a MacBook Pro running OS X 10.4.10. Multiple reinstalls of MacPorts 1.5.0 have not solved it.
Incidentally, although I've moved all the directories named in the FAQ for uninstalling, I notice that the installer UI's last screen button text always says "Upgrade", not "Install", though the panel body text says "...perform a basic installation...".
That's only because a receipt is still in /Library/Receipts. We should update the uninstall instructions to include removing the receipt.
Other MacPorts 1.5.0 installations on two PowerPC PowerBook G4s on the same LAN (one Titanium running 10.3.9, one Aluminum running 10.4.10) managed to selfupdate to 1.520 correctly.
I guess it's unlikely that it's an Intel-only bug -- it would have been spotted long ago -- so I guess there's something wrong with where/how I have curl installed on the MBP.
Here's the error message:
selfupdate
MacPorts base version 1.5 installed Downloaded MacPorts base version 1.520 Configuring, Building and Installing new MacPorts base Error: /opt/local/bin/port: selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/ rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-install-user=root --with-install-group=admin --with- tclpackage=/Library/Tcl && make && make install" returned error 1 Command output: checking for copyfile... yes checking if readlink conforms to POSIX 1003.1a... yes ... lots of checks ... checking whether tclsh was compiled with threads... yes checking for curl-config... no configure: error: cannot find curl-config. Is libcurl installed?
Here's my curl locations and other relevant stuff:
% echo $PATH
/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/usr/local/bin:/usr/ local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
% where curl
/opt/local/bin/curl # MacPorts /sw/bin/curl # Fink
% /opt/local/bin/curl --version
curl 7.16.4 (i386-apple-darwin8.10.1) libcurl/7.16.4 zlib/1.2.3 Protocols: tftp ftp telnet dict http file Features: Largefile libz
% /sw/bin/curl --version
curl 7.15.3 (powerpc-apple-darwin8.4.0) libcurl/7.15.3 OpenSSL/ 0.9.7l zlib/1.2.3 Protocols: tftp ftp telnet dict ldap http file https ftps Features: IPv6 Largefile NTLM SSL libz
% tcsh --version # MacPorts' tcsh, not Darwin's or Fink's
tcsh 6.15.00 (Astron) 2007-03-03 (i386-apple-darwin) options wide,nls,dl,al,kan,rh,color,filec
I've googled the error message several times over the last month, hoping someone else might have had (and solved) the same problem, but without luck. I've scanned this lists archive, I've tried the verbose switch, I've turned off Little Snitch, I've read every word on the MacPorts wiki. Any ideas would be gratefully received.
I recommend you do not attempt to use both Fink and MacPorts at the same time. Pick one, and uninstall the other. Having both is known to cause weird problems, unless you know exactly what you're doing.
On Oct 15, 2007, at 5:09 PM, Ryan Schmidt wrote:
On Oct 15, 2007, at 11:06, Philip Hudson wrote:
I have a persistent issue with MacPorts 1.5.0.
selfupdate to 1.520 fails on a MacBook Pro running OS X 10.4.10. Multiple reinstalls of MacPorts 1.5.0 have not solved it.
Incidentally, although I've moved all the directories named in the FAQ for uninstalling, I notice that the installer UI's last screen button text always says "Upgrade", not "Install", though the panel body text says "...perform a basic installation...".
That's only because a receipt is still in /Library/Receipts. We should update the uninstall instructions to include removing the receipt.
/snip/
I recommend you do not attempt to use both Fink and MacPorts at the same time. Pick one, and uninstall the other. Having both is known to cause weird problems, unless you know exactly what you're doing.
There are enough items to remove. Perhaps an UN-Install script ought to be included with the Binary download?...... Bill William Davis
On 15 Oct, 2007, at 5:39 pm, Daniel J. Luke wrote:
configure: error: cannot find curl-config. Is libcurl installed?
curl-config should be in /usr/bin (it is provided by the BSD.pkg)
Thanks Daniel. That's improved things a lot. I symlinked the MacPorts curl and curl-config in /usr/bin and got a bit further. Now I get: [usr/bin] > selfupdate MacPorts base version 1.5 installed Downloaded MacPorts base version 1.520 Configuring, Building and Installing new MacPorts base Error: /opt/local/bin/port: selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/ rsync.macports.org/release/base && ./configure --prefix=/opt/local -- with-install-user=root --with-install-group=admin --with-tclpackage=/ Library/Tcl && make && make install" returned error 2 Command output: ===> making all in src/pextlib1.0 gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -g -Os - DHAVE_CONFIG_H -I.. -I. -I"/usr/include" -I/opt/local/include - DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 - DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 ... lots of gcc calls ... In file included from sha1cmd.c:57: /opt/local/include/openssl/sha.h:174: warning: ISO C90 does not support 'long long' /opt/local/include/openssl/sha.h:175: warning: ISO C90 does not support 'long long' /opt/local/include/openssl/sha.h:177: warning: ISO C90 does not support 'long long' gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -g -Os - DHAVE_CONFIG_H -I.. -I. -I"/usr/include" -I/opt/local/include - DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 - DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 ... lots of gcc calls ... readline.c: In function 'attempted_completion_function': readline.c:131: error: 'filename_completion_function' undeclared (first use in this function) readline.c:131: error: (Each undeclared identifier is reported only once readline.c:131: error: for each function it appears in.) readline.c:133: error: 'username_completion_function' undeclared (first use in this function) readline.c:139: warning: implicit declaration of function 'completion_matches' readline.c:139: warning: assignment makes pointer from integer without a cast make[2]: *** [readline.o] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1 -- Phil Hudson PGP key available
On Oct 15, 2007, at 5:45 PM, Philip Hudson wrote:
On 15 Oct, 2007, at 5:39 pm, Daniel J. Luke wrote:
configure: error: cannot find curl-config. Is libcurl installed?
curl-config should be in /usr/bin (it is provided by the BSD.pkg)
Thanks Daniel. That's improved things a lot. I symlinked the MacPorts curl and curl-config in /usr/bin and got a bit further.
ick. Your system is messed up if there's no apple-provided curl-config in / usr/bin - you should fix that instead of symlinking things around The macports configure script (and build system) tries to avoid depending on things that macports installs (because if you uninstall macports curl later but macports depends on curl, how will you fix it?).
Now I get:
[usr/bin] > selfupdate MacPorts base version 1.5 installed Downloaded MacPorts base version 1.520 Configuring, Building and Installing new MacPorts base Error: /opt/local/bin/port: selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/ rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-install-user=root --with-install-group=admin --with- tclpackage=/Library/Tcl && make && make install" returned error 2 Command output: ===> making all in src/pextlib1.0 gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -g -Os - DHAVE_CONFIG_H -I.. -I. -I"/usr/include" -I/opt/local/include - DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1
... lots of gcc calls ...
In file included from sha1cmd.c:57: /opt/local/include/openssl/sha.h:174: warning: ISO C90 does not support 'long long' /opt/local/include/openssl/sha.h:175: warning: ISO C90 does not support 'long long' /opt/local/include/openssl/sha.h:177: warning: ISO C90 does not support 'long long' gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -g -Os - DHAVE_CONFIG_H -I.. -I. -I"/usr/include" -I/opt/local/include - DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1
... lots of gcc calls ...
readline.c: In function 'attempted_completion_function': readline.c:131: error: 'filename_completion_function' undeclared (first use in this function) readline.c:131: error: (Each undeclared identifier is reported only once readline.c:131: error: for each function it appears in.) readline.c:133: error: 'username_completion_function' undeclared (first use in this function) readline.c:139: warning: implicit declaration of function 'completion_matches' readline.c:139: warning: assignment makes pointer from integer without a cast make[2]: *** [readline.o] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1
You have a broken readline (probably installed in /usr/local). Move it aside (or remove it) so that macports can build against the system readline. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
On 10/15/07, Daniel J. Luke <dluke@geeklair.net> wrote:
On Oct 15, 2007, at 5:45 PM, Philip Hudson wrote:
On 15 Oct, 2007, at 5:39 pm, Daniel J. Luke wrote:
configure: error: cannot find curl-config. Is libcurl installed?
curl-config should be in /usr/bin (it is provided by the BSD.pkg)
Thanks Daniel. That's improved things a lot. I symlinked the MacPorts curl and curl-config in /usr/bin and got a bit further.
ick.
Your system is messed up if there's no apple-provided curl-config in / usr/bin - you should fix that instead of symlinking things around
The macports configure script (and build system) tries to avoid depending on things that macports installs (because if you uninstall macports curl later but macports depends on curl, how will you fix it?).
This is a good argument for packages. is there any plan to build packages at various milestones, like at release time? Maybe not all ports, but the key ones (curl, gettest, expat. libiconv, etc.). -- Paul Beard / www.paulbeard.org/ <paulbeard@gmail.com/paulbeard@mac.com>
participants (5)
-
Daniel J. Luke
-
paul beard
-
Philip Hudson
-
Ryan Schmidt
-
William Davis