LoginSignup
28
21

More than 5 years have passed since last update.

Ubuntu に cmake を install する。

Last updated at Posted at 2015-11-07

apt-get でうまくいかない

apt-get で cmake を install したけど、うまく動かなかった。

$ sudo apt-get install cmake -y
$ cmake

Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertionneeded != ((void *)0)' failed!

しようがないから手動でインストール

ソースコード落として、自分でコンパイルしたらできました。

https://cmake.org/download/ ここから最新を落とす

$ wget https://cmake.org/files/v3.4/cmake-3.4.0-rc3.tar.gz
$ tar xvf cmake-3.4.0-rc3.tar.gz 
$ cd cmake-3.4.0-rc3/
$ ./configure
$ make
$ sudo make install
$ export PATH="/usr/local/bin:$PATH"
$ cmake
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.

うごいた。

28
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
21