openwrt-yun compile in ubuntu 12.04 fail

Hi all,

I tried to build openwrt-yun on ubuntu 12.04 and unfortunately it failed.
Because package opkg could find libcurl. Here is the log:

checking for CURL... configure: error: Package requirements (libcurl) were not met:

No package 'libcurl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CURL_CFLAGS
and CURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

make[2]: *** [/media/opt/Arduino/openwrt-yun/build_dir/linux-ar71xx_generic/opkg-618/.configured_yyyy] Error 1
make[2]: Leaving directory `/media/opt/Arduino/openwrt-yun/package/opkg'

Did anyone meet this issue before?

BTW: I know it is recommanded to use Debian, but why not Ubuntu. Ubuntu is more popular OS for developing.

Thansk

Is the CURL library installed?

Thanks for reply!
Yes, I tried a lot of libcurl installation ways:

sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libcurl4-gnutls-dev

and 'pkg-config --libs libcurl' output:
-L/usr/local/lib -lcurl

Any suggestion?

Okay. Not sure which machine you are working on, but I don't see the path
/usr/local/lib

I do see
/usr/lib

and in that path I see

/usr/lib/libcurl.so.4.3.0

Maybe try to link to that. or make the link to your program so it uses a "shared object"

Let me know if that works.

Jesse