m@m ~ $ sudo apt-get install build-essential automake autoconf-archive git automake はすでに最新版です。 build-essential はすでに最新版です。 提案パッケージ: git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-bzr git-cvs git-mediawiki git-svn 以下のパッケージが新たにインストールされます: autoconf-archive 以下のパッケージはアップグレードされます: git アップグレード: 1 個、新規インストール: 1 個、削除: 0 個、保留: 35 個。 2,962 kB 中 710 kB のアーカイブを取得する必要があります。 この操作後に追加で 5,263 kB のディスク容量が消費されます。 続行しますか? [Y/n] y 取得:1 http://archive.ubuntu.com/ubuntu/ trusty/universe autoconf-archive all 20131101-1 [710 kB] 710 kB を 1秒 で取得しました (402 kB/s) 以前に未選択のパッケージ autoconf-archive を選択しています。 (データベースを読み込んでいます ... 現在 261801 個のファイルとディレクトリがインストールされています。) .../autoconf-archive_20131101-1_all.deb を展開する準備をしています ... autoconf-archive (20131101-1) を展開しています... .../git_1%3a1.9.1-1ubuntu0.7_amd64.deb を展開する準備をしています ... git (1:1.9.1-1ubuntu0.7) で (1:1.9.1-1ubuntu0.6 に) 上書き展開しています ... doc-base (0.10.5) のトリガを処理しています ... doc-base ファイルを 1 個追加 を処理中... scrollkeeper をドキュメントとして登録しています... install-info (5.2.0.dfsg.1-2) のトリガを処理しています ... 0017login:Penguin2017/10/06(金) 22:50:17.80ID:1xkLz7U2 m@m ~ $ git clone -b test --depth 1 https://github.com/yama-natuki/JD.git jd Cloning into 'jd'... remote: Counting objects: 568, done. remote: Compressing objects: 100% (549/549), done. remote: Total 568 (delta 49), reused 349 (delta 18), pack-reused 0 Receiving objects: 100% (568/568), 935.58 KiB | 560.00 KiB/s, done. Resolving deltas: 100% (49/49), done. Checking connectivity... done. m@m ~ $ cd jd m@m ~/jd $ autoreconf -i libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:9: installing './compile' configure.ac:15: installing './config.guess' configure.ac:15: installing './config.sub' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' src/Makefile.am: installing './depcomp' 0018login:Penguin2017/10/06(金) 22:51:18.48ID:lTxhsMwh>>16 で?何がしたいの? 0019login:Penguin2017/10/06(金) 22:52:47.29ID:1xkLz7U2 m@m ~/jd $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for library containing strerror... none required checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking how to run the C preprocessor... gcc -E 以下略ノーエラーで終了 0020login:Penguin2017/10/06(金) 22:54:56.20ID:1xkLz7U2 ノーエラーではなかった、指導を os = linux-gnu checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for GTKMM... no configure: error: Package requirements (gtkmm-2.4 >= 2.4.0) were not met:
No package 'gtkmm-2.4' 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 GTKMM_CFLAGS and GTKMM_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. m@m ~/jd $ 0021login:Penguin2017/10/06(金) 23:00:07.50ID:lTxhsMwh>>20 No package 'gtkmm-2.4' found
gtkmm-2.4が見つからないってよ。 0022login:Penguin2017/10/06(金) 23:02:58.11ID:YCkwpsg8 sudo apt-get install libgtkmm-2.4-dev で入れられるんじゃないかな 0023login:Penguin2017/10/06(金) 23:04:47.84ID:YCkwpsg8 というか sudo apt-get build-dep jd で、libgtkmm-2.4-devなどJDのビルドに必要なパッケージが インストールされるんじゃなかったっけ 0024login:Penguin2017/10/06(金) 23:13:39.25ID:1xkLz7U2 (synaptic:7682): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed Selecting previously unselected package libsigc++-2.0-dev:amd64. (Reading database ... 262827 files and directories currently installed.) Preparing to unpack .../libsigc++-2.0-dev_2.2.10-0.2ubuntu2_amd64.deb ... Unpacking libsigc++-2.0-dev:amd64 (2.2.10-0.2ubuntu2) ... Selecting previously unselected package libglibmm-2.4-dev:amd64. Preparing to unpack .../libglibmm-2.4-dev_2.39.93-0ubuntu1_amd64.deb ... Unpacking libglibmm-2.4-dev:amd64 (2.39.93-0ubuntu1) ... Selecting previously unselected package libatkmm-1.6-dev:amd64. Preparing to unpack .../libatkmm-1.6-dev_2.22.7-2ubuntu1_amd64.deb ... Unpacking libatkmm-1.6-dev:amd64 (2.22.7-2ubuntu1) ... Selecting previously unselected package libcairomm-1.0-dev:amd64. Preparing to unpack .../libcairomm-1.0-dev_1.10.0-1ubuntu3_amd64.deb ... Unpacking libcairomm-1.0-dev:amd64 (1.10.0-1ubuntu3) ... Selecting previously unselected package libpangomm-1.4-dev:amd64. Preparing to unpack .../libpangomm-1.4-dev_2.34.0-1ubuntu1_amd64.deb ... Unpacking libpangomm-1.4-dev:amd64 (2.34.0-1ubuntu1) ... Selecting previously unselected package libgtkmm-2.4-dev:amd64. Preparing to unpack .../libgtkmm-2.4-dev_1%3a2.24.4-1ubuntu1_amd64.deb ... Unpacking libgtkmm-2.4-dev:amd64 (1:2.24.4-1ubuntu1) ... Setting up libsigc++-2.0-dev:amd64 (2.2.10-0.2ubuntu2) ... Setting up libglibmm-2.4-dev:amd64 (2.39.93-0ubuntu1) ... Setting up libatkmm-1.6-dev:amd64 (2.22.7-2ubuntu1) ... Setting up libcairomm-1.0-dev:amd64 (1.10.0-1ubuntu3) ... Setting up libpangomm-1.4-dev:amd64 (2.34.0-1ubuntu1) ... Setting up libgtkmm-2.4-dev:amd64 (1:2.24.4-1ubuntu1) ... 0025login:Penguin2017/10/06(金) 23:16:19.57ID:1xkLz7U2 m@m ~ $ sudo apt-get build-dep jd E: jd のソースパッケージが見つかりません ----------------------------------- と返事、放置。これの対策は? 0026login:Penguin2017/10/06(金) 23:21:08.82ID:1xkLz7U2 m@m ~ $ ./configure bash: ./configure: そのようなファイルやディレクトリはありません m@m ~ $ cd jd 中略 use socket checking socket.h usability... no checking socket.h presence... no checking for socket.h... no checking for socket in -lsocket... no checking for X11... yes checking for SMlib.h and ICElib.h... /usr/include checking for libSM and libICE... could not find libSM and libICE. use gnutls checking for GNUTLS... no configure: error: Package requirements (gnutls >= 1.2) were not met:
No package 'gnutls' 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 GNUTLS_CFLAGS and GNUTLS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. m@m ~/jd $ 0027login:Penguin2017/10/06(金) 23:27:47.07ID:1xkLz7U2 (synaptic:9135): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed Selecting previously unselected package socket. (Reading database ... 263944 files and directories currently installed.) Preparing to unpack .../socket_1.1-10_amd64.deb ... Unpacking socket (1.1-10) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up socket (1.1-10) ... 0028login:Penguin2017/10/06(金) 23:34:18.81ID:lTxhsMwh>>26 sudo apt install libgnutls28-dev 0029login:Penguin2017/10/06(金) 23:35:17.12ID:wXOu6zWj libgtkmm-2.4-dev 入れたなら後はこれでいけるだろ sudo apt-get install autoconf libtool libgnutls28-dev てかJDのビルドの説明読めば全部書いてなかったか確か 0030login:Penguin2017/10/06(金) 23:39:12.95ID:1xkLz7U2 ありがとうございます m@m ~ $ m@m ~ $ sudo apt install libgnutls28-dev 略 以下の特別パッケージがインストールされます: libgmp-dev libgmpxx4ldbl libgnutls-dev libgnutlsxx28 libp11-kit-dev libtasn1-6-dev nettle-dev 提案パッケージ: libgmp10-doc libmpfr-dev gnutls-doc gnutls-bin guile-gnutls 推奨パッケージ: libtasn1-doc 以下のパッケージが新たにインストールされます: libgmp-dev libgmpxx4ldbl libgnutls-dev libgnutls28-dev libgnutlsxx28 libp11-kit-dev libtasn1-6-dev nettle-dev アップグレード: 0 個、新規インストール: 8 個、削除: 0 個、保留: 35 個。 1,801 kB のアーカイブを取得する必要があります。 この操作後に追加で 8,018 kB のディスク容量が消費されます。 続行しますか? [Y/n] y
m@m ~/jd $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for library containing strerror... none required checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes 0035login:Penguin2017/10/06(金) 23:49:56.69ID:wXOu6zWj ./configure でエラー出なければ後は make するだけだよ 0036login:Penguin2017/10/06(金) 23:50:23.69ID:1xkLz7U2 checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no 0037login:Penguin2017/10/06(金) 23:53:45.10ID:1xkLz7U2 use socket checking socket.h usability... no checking socket.h presence... no checking for socket.h... no checking for socket in -lsocket... no checking for X11... yes checking for SMlib.h and ICElib.h... /usr/include checking for libSM and libICE... could not find libSM and libICE. use gnutls checking for GNUTLS... yes gnutls >= 1.2 checking gcrypt.h usability... no checking gcrypt.h presence... no checking for gcrypt.h... no checking for gcry_md_hash_buffer in -lgcrypt... no configure: error: gcrypt not found m@m ~/jd $ 0038login:Penguin2017/10/06(金) 23:56:29.42ID:vOzQo5MK>>8 前スレの986です。 https://github.com/yama-natuki/JD/tree/test にあるjd-2.8.9-171003をインストールしようとしたのは CentOS 6 64bit JD Ver 2.8.9-150226で 2chproxy.pl v1.2 https://pastebin.com/53GmdasL を使用すると「設定ーネットワークープロキシ」でその他のサーバ用もチェックしないとスレの更新で読めなくなった。 だけどhttpsな画像リンクが取得できなくなる、チェック外すと画像を読み込む、と言う状態を改善できるかもと考えたからです。 jd-2.8.9-171003をインストール出来た結果、その他のサーバ用のチェックを入れないでもスレが更新できるようになり、 httpsな画像リンクも読めるようになりました。 >>10,12 c++11の代わりにc++0xを使用してみると $ make CXXFLAGS+="-std=c++0x" loader.cpp:571: error: call of overloaded ‘to_string(long int&)’ is ambiguous のようになってしまった。それで centos c++11で検索して CentOS 6でC/C++開発環境を整える http://goldilocks-engineering.blogspot.jp/2014/05/centos-64c.html