cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: error using smtp with libcurl

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Wed, 25 Aug 2010 18:36:26 -0500

On Wed, Aug 25, 2010 at 6:08 PM, Prasanna Mohanty wrote:

> I did the following inside curl-7.21.1 directory
> --
> ./configure --enable-smtp
> sudo make install
> --
> From the command "curl --version" seems like my curl installation already
> supports smtp
> but when I execute the compiled code I see the error. Did I miss any
> installation step?
>
> --
> [pmohanty_at_localhost ~]$ curl --version
> curl 7.21.1 (i686-pc-linux-gnu) libcurl/7.21.1 OpenSSL/1.0.0 zlib/1.2.3
> libidn/1.9
> Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s
> rtsp smtp smtps telnet tftp

> [pmohanty_at_localhost ~]$ ./a.out
> * Protocol smtp not supported or disabled in libcurl
> * Unsupported protocol

Please don't top-post on this list.

Is it possible the installed curl and your ./a.out are using two
different versions of the library?

Maybe try something like:

  ldd ./a.out
  ldd $(which curl)

And make sure you don't have an extra copy of the library
installed somewhere.

 - Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-26