0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

docker(25) dockerにcmake

Last updated at Posted at 2019-06-25

Open jij導入失敗
https://qiita.com/kaizen_nagoya/items/11cb393d5b8ce9019cd6

Open jij導入失敗(2)
https://qiita.com/kaizen_nagoya/items/aa483a07608f8c3563bc

cmake version 3.11以上が必要らしい。

# apt install cmake
# cmake --version
cmake version 3.10.2

そこで、次の資料を参考にさせていただいた。
Linuxに特定のバージョンのcmakeをインストール
https://qiita.com/pollenjp/items/391afc3e9f93006b83ba

# apt remove cmake
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cmake-data krb5-locales libarchive13 libcurl4 libgssapi-krb5-2 libjsoncpp1 libk5crypto3
  libkeyutils1 libkrb5-3 libkrb5support0 liblzo2-2 libnghttp2-14 libpsl5 librhash0 librtmp1
  libuv1 multiarch-support publicsuffix
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  cmake
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 17.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 17342 files and directories currently installed.)
Removing cmake (3.10.2-1ubuntu2) ...

# apt install wget
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cmake-data krb5-locales libarchive13 libcurl4 libgssapi-krb5-2 libjsoncpp1 libk5crypto3
  libkeyutils1 libkrb5-3 libkrb5support0 liblzo2-2 libnghttp2-14 librhash0 librtmp1 libuv1
  multiarch-support
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  wget
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 316 kB of archives.
After this operation, 954 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 wget amd64 1.19.4-1ubuntu2.2 [316 kB]
Fetched 316 kB in 2s (158 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package wget.
(Reading database ... 17329 files and directories currently installed.)
Preparing to unpack .../wget_1.19.4-1ubuntu2.2_amd64.deb ...
Unpacking wget (1.19.4-1ubuntu2.2) ...
Setting up wget (1.19.4-1ubuntu2.2) ...

# wget https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.sh

--2019-06-25 11:08:07--  https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.sh
Resolving github.com (github.com)... 52.69.186.44
Connecting to github.com (github.com)|52.69.186.44|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/537699/ad7b7280-83a2-11e9-8514-7cba293bd456?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190625%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190625T110807Z&X-Amz-Expires=300&X-Amz-Signature=dfa677a917823087e2a2257d71f6cda5cfe5df234477e03f452a185ee69f64ca&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.5-Linux-x86_64.sh&response-content-type=application%2Foctet-stream [following]
--2019-06-25 11:08:08--  https://github-production-release-asset-2e65be.s3.amazonaws.com/537699/ad7b7280-83a2-11e9-8514-7cba293bd456?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190625%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190625T110807Z&X-Amz-Expires=300&X-Amz-Signature=dfa677a917823087e2a2257d71f6cda5cfe5df234477e03f452a185ee69f64ca&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.5-Linux-x86_64.sh&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.177.91
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.177.91|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37200120 (35M) [application/octet-stream]
Saving to: 'cmake-3.14.5-Linux-x86_64.sh'

cmake-3.14.5-Linux-x86_ 100%[============================>]  35.48M  4.21MB/s    in 8.3s    

2019-06-25 11:08:17 (4.29 MB/s) - 'cmake-3.14.5-Linux-x86_64.sh' saved [37200120/37200120]

root@02b32b9272ce:/# wget https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz
--2019-06-25 11:08:30--  https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz
Resolving github.com (github.com)... 52.69.186.44
Connecting to github.com (github.com)|52.69.186.44|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/537699/a94f5500-83a2-11e9-8429-3ec560052352?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190625%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190625T110830Z&X-Amz-Expires=300&X-Amz-Signature=ff23e72dacc51245d203c0ed44ef0669bb18666d37624ee231c38dd054094be9&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.5-Linux-x86_64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2019-06-25 11:08:30--  https://github-production-release-asset-2e65be.s3.amazonaws.com/537699/a94f5500-83a2-11e9-8429-3ec560052352?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190625%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190625T110830Z&X-Amz-Expires=300&X-Amz-Signature=ff23e72dacc51245d203c0ed44ef0669bb18666d37624ee231c38dd054094be9&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.5-Linux-x86_64.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.161.211
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.161.211|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37191648 (35M) [application/octet-stream]
Saving to: 'cmake-3.14.5-Linux-x86_64.tar.gz'

cmake-3.14.5-Linux-x86_ 100%[============================>]  35.47M  5.26MB/s    in 7.7s    

2019-06-25 11:08:40 (4.62 MB/s) - 'cmake-3.14.5-Linux-x86_64.tar.gz' saved [37191648/37191648]

root@02b32b9272ce:/# ls *.sh
cmake-3.14.5-Linux-x86_64.sh
root@02b32b9272ce:/# ls -al *.sh
-rw-r--r-- 1 root root 37200120 May 31 16:50 cmake-3.14.5-Linux-x86_64.sh
root@02b32b9272ce:/# chmod +x cmake-3.14.5-Linux-x86_64.sh
root@02b32b9272ce:/# ./cmake-3.14.5-Linux-x86_64.sh 
CMake Installer Version: 3.14.5, Copyright (c) Kitware
This is a self-extracting archive.
The archive will be extracted to: /

If you want to stop extracting, please press <ctrl-C>.
CMake - Cross Platform Makefile Generator
Copyright 2000-2019 Kitware, Inc. and Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

* Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.

* Neither the name of Kitware, Inc. nor the names of Contributors
  may be used to endorse or promote products derived from this
  software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

------------------------------------------------------------------------------

The following individuals and institutions are among the Contributors:

* Aaron C. Meadows <cmake@shadowguarddev.com>
* Adriaan de Groot <groot@kde.org>
* Aleksey Avdeev <solo@altlinux.ru>
* Alexander Neundorf <neundorf@kde.org>
* Alexander Smorkalov <alexander.smorkalov@itseez.com>
* Alexey Sokolov <sokolov@google.com>
* Alex Merry <alex.merry@kde.org>
* Alex Turbov <i.zaufi@gmail.com>
* Andreas Pakulat <apaku@gmx.de>
* Andreas Schneider <asn@cryptomilk.org>
* André Rigland Brodtkorb <Andre.Brodtkorb@ifi.uio.no>
* Axel Huebl, Helmholtz-Zentrum Dresden - Rossendorf
* Benjamin Eikel
* Bjoern Ricks <bjoern.ricks@gmail.com>
* Brad Hards <bradh@kde.org>
* Christopher Harvey
* Christoph Grüninger <foss@grueninger.de>
* Clement Creusot <creusot@cs.york.ac.uk>
* Daniel Blezek <blezek@gmail.com>
* Daniel Pfeifer <daniel@pfeifer-mail.de>
* Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
* Eran Ifrah <eran.ifrah@gmail.com>
* Esben Mose Hansen, Ange Optimization ApS
* Geoffrey Viola <geoffrey.viola@asirobots.com>
* Google Inc
* Gregor Jasny
* Helio Chissini de Castro <helio@kde.org>
* Ilya Lavrenov <ilya.lavrenov@itseez.com>
* Insight Software Consortium <insightsoftwareconsortium.org>
* Jan Woetzel
* Julien Schueller
* Kelly Thompson <kgt@lanl.gov>
* Laurent Montel <montel@kde.org>
* Konstantin Podsvirov <konstantin@podsvirov.pro>
* Mario Bensi <mbensi@ipsquad.net>
* Martin Gräßlin <mgraesslin@kde.org>
* Mathieu Malaterre <mathieu.malaterre@gmail.com>
* Matthaeus G. Chajdas
* Matthias Kretz <kretz@kde.org>
* Matthias Maennich <matthias@maennich.net>
* Michael Hirsch, Ph.D. <www.scivision.co>
* Michael Stürmer
* Miguel A. Figueroa-Villanueva
* Mike Jackson
* Mike McQuaid <mike@mikemcquaid.com>
* Nicolas Bock <nicolasbock@gmail.com>
* Nicolas Despres <nicolas.despres@gmail.com>
* Nikita Krupen'ko <krnekit@gmail.com>
* NVIDIA Corporation <www.nvidia.com>
* OpenGamma Ltd. <opengamma.com>
* Patrick Stotko <stotko@cs.uni-bonn.de>
* Per Øyvind Karlsen <peroyvind@mandriva.org>
* Peter Collingbourne <peter@pcc.me.uk>
* Petr Gotthard <gotthard@honeywell.com>
* Philip Lowman <philip@yhbt.com>
* Philippe Proulx <pproulx@efficios.com>
* Raffi Enficiaud, Max Planck Society
* Raumfeld <raumfeld.com>
* Roger Leigh <rleigh@codelibre.net>
* Rolf Eike Beer <eike@sf-mail.de>
* Roman Donchenko <roman.donchenko@itseez.com>
* Roman Kharitonov <roman.kharitonov@itseez.com>
* Ruslan Baratov
* Sebastian Holtermann <sebholt@xwmw.org>
* Stephen Kelly <steveire@gmail.com>
* Sylvain Joubert <joubert.sy@gmail.com>
* Thomas Sondergaard <ts@medical-insight.com>
* Tobias Hunger <tobias.hunger@qt.io>
* Todd Gamblin <tgamblin@llnl.gov>
* Tristan Carel
* University of Dundee
* Vadim Zhukov
* Will Dicharry <wdicharry@stellarscience.com>

See version control history for details of individual contributions.

The above copyright and license notice applies to distributions of
CMake in source and binary form.  Third-party software packages supplied
with CMake under compatible licenses provide their own copyright notices
documented in corresponding subdirectories or source files.

------------------------------------------------------------------------------

CMake was initially developed by Kitware with the following sponsorship:

 * National Library of Medicine at the National Institutes of Health
   as part of the Insight Segmentation and Registration Toolkit (ITK).

 * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
   Visualization Initiative.

 * National Alliance for Medical Image Computing (NAMIC) is funded by the
   National Institutes of Health through the NIH Roadmap for Medical Research,
   Grant U54 EB005149.

 * Kitware, Inc.


Do you accept the license? [yN]: 
y
By default the CMake will be installed in:
  "//cmake-3.14.5-Linux-x86_64"
Do you want to include the subdirectory cmake-3.14.5-Linux-x86_64?
Saying no will install in: "/" [Yn]: 
y

Using target directory: //cmake-3.14.5-Linux-x86_64
Extracting, please wait...

Unpacking finished successfully
root@02b32b9272ce:/# ls
bin                           cmake-3.14.5-Linux-x86_64.tar.gz  lib    opt   sbin  usr
boot                          dev                               lib64  proc  srv   var
cmake-3.14.5-Linux-x86_64     etc                               media  root  sys
cmake-3.14.5-Linux-x86_64.sh  home                              mnt    run   tmp
root@02b32b9272ce:/# pwd
/
root@02b32b9272ce:/# mv cmake-3.14.5-Linux-x86_64 /opt
root@02b32b9272ce:/# ln -s /opt/cmake-3.14.5-Linux-x86_64/bin/* /usr/bin
root@02b32b9272ce:/# cmake --version
cmake version 3.14.5

CMake suite maintained and supported by Kitware (kitware.com/cmake).

#参考資料(reference)

Open jij導入失敗
https://qiita.com/kaizen_nagoya/items/11cb393d5b8ce9019cd6

Open jij導入失敗(2)
https://qiita.com/kaizen_nagoya/items/aa483a07608f8c3563bc

OpenJij チュートリアル
https://openjij.github.io/OpenJijTutorial/_build/html/ja/index.html

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?