Linuxbrew / legacy-linuxbrew

:skull: This repository is defunct, because it has been split into https://github.com/Linuxbrew/brew and https://github.com/Linuxbrew/homebrew-core
http://linuxbrew.sh
Other
2.23k stars 297 forks source link

cmake requires libcurl4-openssl-dev #43

Closed canassa closed 10 years ago

canassa commented 10 years ago

Hi

brew install cmake failed in a Ubuntu box due to a missing libcurl. Here is the full log:

....
-- Looking for C++ include dlfcn.h - found
-- Checking whether dladdr works with this C++ compiler
-- Checking whether dladdr works with this C++ compiler - yes
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Checking whether cxxabi works with this C++ compiler
-- Checking whether cxxabi works with this C++ compiler - yes
-- Using system-installed BZIP2
-- Using system-installed CURL
-- Using system-installed EXPAT
-- Using system-installed ZLIB
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.3.4") 
-- Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:283 (message):
  CMAKE_USE_SYSTEM_CURL is ON but a curl is not found!
Call Stack (most recent call first):
  CMakeLists.txt:515 (CMAKE_BUILD_UTILITIES)

-- Configuring incomplete, errors occurred!
See also "/tmp/cmake-15NN/cmake-2.8.12.1/CMakeFiles/CMakeOutput.log".
See also "/tmp/cmake-15NN/cmake-2.8.12.1/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 0c737b1ef9fb9cfb0b715949ac8eed14d6ab1801
HOMEBREW_PREFIX: /home/cesar/.linuxbrew
CPU: quad-core 64-bit dunno
OS X: 0-x86_64
/home/cesar/.rbenv/versions/2.0.0-p247/bin/ruby:
  2.0.0-247
X11: N/A
==> ENV
CC: /usr/bin/gcc => /usr/bin/gcc-4.6
CXX: /usr/bin/g++ => /usr/bin/g++-4.6
OBJC: /usr/bin/gcc
OBJCXX: /usr/bin/g++
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -isystem/home/cesar/.linuxbrew/include
LDFLAGS: -L/home/cesar/.linuxbrew/lib -Wl,-headerpad_max_install_names
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /home/cesar/.linuxbrew
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig
ACLOCAL_PATH: /home/cesar/.linuxbrew/share/aclocal
PATH: /home/cesar/.rbenv/versions/2.0.0-p247/bin:/home/cesar/.rbenv/libexec:/home/cesar/.rbenv/plugins/ruby-build/bin:/home/cesar/.linuxbrew/bin:/home/cesar/.rbenv/bin:/home/cesar/.rbenv/shims:/home/cesar/bin:/home/cesar/google_appengine:/home/cesar/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/cesar/010editor:/home/cesar/.rvm/bin:/home/cesar/010editor:/home/cesar/.linuxbrew/Library/Contributions/cmd

Error: cmake did not build
Logs:
     /home/cesar/Library/Logs/Homebrew/cmake/CMakeCache.txt
     /home/cesar/Library/Logs/Homebrew/cmake/01.bootstrap

Installing libcurl4-openssl-dev fixed the problem. Maybe it should be added to the readme?

Thanks,

sjackman commented 10 years ago

Thanks for the tip, Cesar.

benswift commented 10 years ago

Also, just a heads up, I also needed to sudo apt-get install python-dev to get cmake to build on Ubuntu 13.10.

I tried to get python through brew install python, but it failed. Are people usually using the system python?

sjackman commented 10 years ago

I do use the Homebrew python 2.7.6 on both Mac and Linux. Using the system python is totally reasonable too. What was the error that you got when building python?

benswift commented 10 years ago

Here's the dump

ben@lonyx ~ $ brew install python
==> Downloading http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
Already downloaded: /home/ben/.cache/Homebrew/python-2.7.6.tgz
==> ./configure --prefix=/home/ben/.linuxbrew/Cellar/python/2.7.6 --enable-ipv6 --datarootdir=/home/ben/.linuxbrew/Cellar/python/2.7.6/share --datadir=/home/ben/.linuxbrew/
==> make
./Modules/getpath.c:476:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     buf = (char *)NSLibraryNameForModule(pythonModule);
           ^
make: *** [Modules/getpath.o] Error 1
make: *** Waiting for unfinished jobs....

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
python failed to build on 10.9.1 (https://github.com/Homebrew/homebrew/issues/26166)
cmake find_package(PythonLibs) broken with brewed python on 10.9 (https://github.com/Homebrew/homebrew/issues/25118)
In python Formula, it seems that "brewed python part" in sitecustomize.py is not called (https://github.com/Homebrew/homebrew/issues/26377)
Meld causes python dump in 10.9 (https://github.com/Homebrew/homebrew/issues/26273)
subversion: make python bindings build on 10.9. (https://github.com/Homebrew/homebrew/pull/26156)

My homebrew is up-to-date. brew doctor gives many warnings but they all seem to be related to being on linux. Here's the output:

Warning: Your file-system on [["/"]] appears to be CaSe SeNsItIvE.
Homebrew is less tested with that - don't worry but please report issues.
Error: Failed to import: lsyncd
No such file or directory - sw_vers -productVersion

Warning: Suspicious git origin remote found.

With a non-standard origin, Homebrew won't pull updates from
the main repository. The current git origin is:
  https://github.com/Homebrew/linuxbrew.git

Unless you have compelling reasons, consider setting the
origin remote to point at the main repository, located at:
  https://github.com/Homebrew/homebrew.git

Warning: The version of libcurl provided with Mac OS X 0 has outdated
SSL certificates.

This can cause problems when running Homebrew commands that use Git to
fetch over HTTPS, e.g. `brew update` or installing formulae that perform
Git checkouts.

You can force Git to ignore these errors:
  export GIT_SSL_NO_VERIFY=1
or
  git config --global http.sslVerify false

Warning: Your Homebrew is not installed to /usr/local
You can install Homebrew anywhere you want, but some brews may only build
correctly if you install in /usr/local. Sorry!

Warning: Ruby version 1.9.3 is unsupported.
Homebrew is developed and tested on Ruby 1.8.x, and may not work correctly
on other Rubies. Patches are accepted as long as they don't break on 1.8.x.
sjackman commented 10 years ago

Woops. I had an uncomitted patch for python. It's pushed now: 3ad2130b339b3d72764d1b5c11591bb22652495a.

benswift commented 10 years ago

Cool, thanks Shaun.

Cheers, Ben

On 14 Feb 2014, at 10:54 am, Shaun Jackman notifications@github.com wrote:

Woops. I had an uncomitted patch for python. It's pushed now: 3ad2130.

— Reply to this email directly or view it on GitHub.