X



トップページLinux
1002コメント320KB
[[[ 2ch ブラウザ JD 19]]]
■ このスレッドは過去ログ倉庫に格納されています
0001login:Penguin
垢版 |
2017/10/06(金) 20:22:29.98ID:o5PufOFR
JD は gtkmm/GTK+ を用いた2chブラウザです。

公式
http://jd4linux.sourceforge.jp/

sourceforge.jp
http://sourceforge.jp/projects/jd4linux/

JDサポートBBS
http://jd4linux.sourceforge.jp/cgi-bin/bbs/support/

2chスレ過去ログ
http://jd4linux.sourceforge.jp/old2ch/

JD開発ポリシー
http://jd4linux.sourceforge.jp/policy.txt

前スレ
[[[ 2ch ブラウザ JD 17 ]]] [無断転載禁止]©2ch.net
http://mao.5ch.net/test/read.cgi/linux/1494846782/
その前
2ch ブラウザ JD 16.1
http://hayabusa6.2ch.net/test/read.cgi/linux/1429177088/
0002login:Penguin
垢版 |
2017/10/06(金) 20:27:31.04ID:qcYQLtlW
>>1


JDのビルドと2chproxy.plで5ch対応を初心者の自分にも出来たのに上手く行かない人が結構居るんだな
0003login:Penguin
垢版 |
2017/10/06(金) 20:29:38.32ID:o5PufOFR
>前スレの1000さん
>このスレは重複スレ
そうだったんだ
すっかり忘れてた(今も思い出せない)
ということで19にしてセーフ

という訳で
17が2個で18は欠番ですよ
前スレ
[[[ 2ch ブラウザ JD 17 ]]] [無断転載禁止]©2ch.net
http://mao.5ch.net/test/read.cgi/linux/1494846782/
その前
[[[ 2ch ブラウザ JD 17 ]]] [転載禁止]©2ch.net
http://mao.5ch.net/test/read.cgi/linux/1431339280/
と訂正いたします
0005login:Penguin
垢版 |
2017/10/06(金) 20:39:22.18ID:o5PufOFR
>>4
最近はブサメンでもスレ立て出来るんですよ
0006login:Penguin
垢版 |
2017/10/06(金) 20:40:55.93ID:wXOu6zWj
>>1

>>3
その前っていうスレ開けないけど
0008login:Penguin
垢版 |
2017/10/06(金) 20:55:02.29ID:vOzQo5MK
前スレの986です。

CentOS 6 64bit です。
https://github.com/yama-natuki/JD/tree/test
ここにあるJDをインストールしようとしてサイトに書いてある手順に従って
$ make したら

loader.cpp:571: error: ‘to_string’ is not a member of ‘std’

レスをくださった方を参考に
$ make CXXFLAGS+="-std=c++11"
すると
cc1plus: error: unrecognized command line option "-std=c++11"

>autoconf-archive入れれば良いんじゃね?
を参考に $ sudo yum install autoconf-archive すると
パッケージ autoconf-archive は利用できません。
Debian系にはあってもRedhat系にautoconf-archiveは無いみたいです。

>つかってるコンパイラが古くてjdが必要とする機能に対応してないからバージョン上げるしか無い
CentOS 6 からCentOS 7に変えなきゃ無理なのかな?
0009login:Penguin
垢版 |
2017/10/06(金) 21:04:00.53ID:o5PufOFR
>>8
http://jd4linux.osdn.jp/
OS/ディストリビューション別インストール方法(wiki)
をクリックしてRedhat系のところ読んでみたら?
0012login:Penguin
垢版 |
2017/10/06(金) 21:11:09.45ID:hr/lObup
よくわからないけどc++11の代わりにc++0xでダメなら
centos c++11でググッてg++のバージョン上げればいいんじゃないかと思いました。
0014login:Penguin
垢版 |
2017/10/06(金) 22:13:51.44ID:o5PufOFR
>>13
これはと言われても前スレ986氏は戸惑うしかないんじゃなかろうか?
一体それをどうしろと?
0015login:Penguin
垢版 |
2017/10/06(金) 22:14:57.73ID:XP0r9pNF
>>11
いわれてみりゃ確かに数値をstringにするだけなんで自前で置き換えちゃえばいいだけやな
かってにstdに作っちゃうのもアレだしざっと見る限りstd::to_string使ってるのはsrc/jdlib/loader.cppの571行目だけっぽいからそこだけ置き換えれば良いね
以下その場しのぎ&ビルド出来るかすら確認してないうんこぱっち
https://pastebin.com/kd99HV3K

正式に対応するなら他に元のjdと比べてC++11に依存する変更はないかとか考慮すべき点が色々あるだろうからissueで相談してみると良いかもね
0016login:Penguin
垢版 |
2017/10/06(金) 22:45:59.77ID:1xkLz7U2
m@m ~ $ sudo apt-get build-dep jd
E: jd のソースパッケージが見つかりません
m@m ~ $

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:Penguin
垢版 |
2017/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'
0019login:Penguin
垢版 |
2017/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:Penguin
垢版 |
2017/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:Penguin
垢版 |
2017/10/06(金) 23:00:07.50ID:lTxhsMwh
>>20
No package 'gtkmm-2.4' found

gtkmm-2.4が見つからないってよ。
0022login:Penguin
垢版 |
2017/10/06(金) 23:02:58.11ID:YCkwpsg8
sudo apt-get install libgtkmm-2.4-dev
で入れられるんじゃないかな
0023login:Penguin
垢版 |
2017/10/06(金) 23:04:47.84ID:YCkwpsg8
というか
sudo apt-get build-dep jd
で、libgtkmm-2.4-devなどJDのビルドに必要なパッケージが
インストールされるんじゃなかったっけ
0024login:Penguin
垢版 |
2017/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:Penguin
垢版 |
2017/10/06(金) 23:16:19.57ID:1xkLz7U2
m@m ~ $ sudo apt-get build-dep jd
E: jd のソースパッケージが見つかりません
-----------------------------------
と返事、放置。これの対策は?
0026login:Penguin
垢版 |
2017/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:Penguin
垢版 |
2017/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) ...
0029login:Penguin
垢版 |
2017/10/06(金) 23:35:17.12ID:wXOu6zWj
libgtkmm-2.4-dev 入れたなら後はこれでいけるだろ
sudo apt-get install autoconf libtool libgnutls28-dev
てかJDのビルドの説明読めば全部書いてなかったか確か
0030login:Penguin
垢版 |
2017/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



libgnutlsxx28:amd64 (3.3.15-5ubuntu2.0~1pmo3~trusty) を設定しています ...
libgmp-dev:amd64 (2:6.0.0+dfsg-6pmo1.1~trusty) を設定しています ...
nettle-dev (2.7.1-1ubuntu0.2) を設定しています ...
libtasn1-6-dev:amd64 (4.5-2pmo1~trusty) を設定しています ...
libp11-kit-dev:amd64 (0.23.1-2pmo1~trusty) を設定しています ...
libgnutls-dev:amd64 (3.3.15-5ubuntu2.0~1pmo3~trusty) を設定しています ...
libgnutls28-dev:amd64 (3.3.15-5ubuntu2.0~1pmo3~trusty) を設定しています ...
libc-bin (2.19-0ubuntu6.13) のトリガを処理しています ...
m@m ~ $
0032login:Penguin
垢版 |
2017/10/06(金) 23:42:35.23ID:1xkLz7U2
感謝
m@m ~/jd $ sudo apt-get install autoconf libtool libgnutls28-dev
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
autoconf はすでに最新版です。
libtool はすでに最新版です。
libgnutls28-dev はすでに最新版です。
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 35 個。
m@m ~/jd $
0033login:Penguin
垢版 |
2017/10/06(金) 23:46:37.20ID:mCV5ERFQ
前スレの969です。978さんが示してくれたURLを読んで./configure --with-nativeが通るようになりました
レスを下さった方々、どうもありがとうございました。自力で解決方法まで辿り着けるようにもっと検索技術を磨こうと思います
0034login:Penguin
垢版 |
2017/10/06(金) 23:47:13.42ID: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
0035login:Penguin
垢版 |
2017/10/06(金) 23:49:56.69ID:wXOu6zWj
./configure でエラー出なければ後は make するだけだよ
0036login:Penguin
垢版 |
2017/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:Penguin
垢版 |
2017/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:Penguin
垢版 |
2017/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

# cd /etc/yum.repos.d/
# wget http://people.centos.org/tru/devtools-2/devtools-2.repo
# yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran

$ scl enable devtoolset-2 bash
$ g++ --version
g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) g++が4.7以上なのを確認して

$ git clone -b test --depth 1 https://github.com/yama-natuki/JD.git jd
$ cd jd
$ autoreconf -i
$ ./configure
$ make CXXFLAGS+="-std=c++11"
のコンパイルが通りました。

レスくれた皆さんありがとうございます。
0039login:Penguin
垢版 |
2017/10/06(金) 23:56:35.12ID:XXVYn9PK
libgcrypt20-devがないみたいだね
0040login:Penguin
垢版 |
2017/10/07(土) 00:01:12.02ID:PoQs0+n7
(synaptic:15928): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed
Selecting previously unselected package libgpg-error-dev.
(Reading database ... 264199 files and directories currently installed.)
Preparing to unpack .../libgpg-error-dev_1.12-0.2ubuntu1_amd64.deb ...
Unpacking libgpg-error-dev (1.12-0.2ubuntu1) ...
Selecting previously unselected package libgcrypt20-dev.
Preparing to unpack .../libgcrypt20-dev_1.6.1-2ubuntu1.14.04.1_amd64.deb ...
Unpacking libgcrypt20-dev (1.6.1-2ubuntu1.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libgpg-error-dev (1.12-0.2ubuntu1) ...
Setting up libgcrypt20-dev (1.6.1-2ubuntu1.14.04.1) ...
0042login:Penguin
垢版 |
2017/10/07(土) 00:03:31.41ID:ZQ4cifz9
>>38 訂正

$ ./configure --with-native でした。
0043login:Penguin
垢版 |
2017/10/07(土) 00:04:15.02ID:1hx7arAb
まだ足りないのあるのかw
0044login:Penguin
垢版 |
2017/10/07(土) 00:07:14.99ID:PoQs0+n7
通ったみたい。知識がないから判定できない、雰囲気でオッケーに見える

m@m ~ $ cd jd
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 ←このnoはいいのか?

configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/skeleton/Makefile
config.status: creating src/message/Makefile
config.status: creating src/history/Makefile
config.status: creating src/config/Makefile
config.status: creating src/icons/Makefile
config.status: creating src/sound/Makefile
config.status: creating src/xml/Makefile
config.status: creating src/control/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
m@m ~/jd $
0047login:Penguin
垢版 |
2017/10/07(土) 00:53:13.72ID:PoQs0+n7
make[2]: ディレクトリ `/home/m/jd' に入ります
make[2]: ディレクトリ `/home/m/jd' から出ます
make[1]: ディレクトリ `/home/m/jd' から出ます
m@m ~/jd $

たった今通りました ありがとうございました まだ起動などさせていません

ubuntu mate 16.04側のjd 、一個前のビルドしたやつ

ガセネタをもとにグチョグチョにいじって元に戻せるか不明だが、可能なら、ギットプルのみでやりたい

mint17.2のv2c も、対策したい。しかし、とにかくストップしているcpu 関連の方へ戻りたい

未だ実際にjd使えるか不明なのに、「鬼が笑う」が
0048login:Penguin
垢版 |
2017/10/07(土) 01:10:39.59ID:PoQs0+n7
m@m ~ $ cd 2chproxy.pl/
m@m ~/2chproxy.pl $ ./install.sh
Copying 2chproxy.pl to /home/m/bin
Copying jd.sh to /home/m/bin
Copying jd.desktop...
Backup to jd.conf
replace jd.conf
m@m ~/2chproxy.pl $
0049login:Penguin
垢版 |
2017/10/07(土) 01:18:39.18ID:PoQs0+n7
端末の解釈と、コマンドを教えてくれたみんな!
ありがとう
「ガセネタをもとに」というのは大傲慢でした
みなで試行錯誤して、問題にチャレンジした大切な過程だったんですね
これからも俺達は協力して世界のトップを取ろう
いろいろ困難に遭遇するだろうが、決してリナックスの友を裏切ることは
しない、そう決意している
0050login:Penguin
垢版 |
2017/10/07(土) 01:24:01.75ID:PoQs0+n7
./install.sh
しても起動しない
今夜は終わります
新しい5ちゃんねるよ
永遠たれ
0052login:Penguin
垢版 |
2017/10/07(土) 01:36:28.76ID:NJ1mDwqq
>>51
最後のほうでコンパイルエラーの話をしてるので合ってると思います
そもそも前スレが17の重複スレだったので今回の19は正解です
0053login:Penguin
垢版 |
2017/10/07(土) 01:52:41.28ID:XAtLM5FN
>>18
> 18 名前:login:Penguin [sage]: 2017/10/06(金) 22:51:18.48 ID:lTxhsMwh (4)
> >>16
> で?何がしたいの?

何がしたいのか、頭使って考えろや!
糞ガキが!
0054login:Penguin
垢版 |
2017/10/07(土) 01:52:55.81ID:NJ1mDwqq
とりあえずやったこと
Mint18.2 cinnamon
俺環だからそのまま使えるかどうかはわからない
リポジトリのJDをそのまま使う方法

面倒だから2chproxy.plディレクトリを削除
新しくgit clone https://github.com/yama-natuki/2chproxy.pl.gitで2chproxy.plディレクトリを取得
cd 2chproxy.plで、chmod +x 2chproxy.pl
それから./install.sh
about:configの設定で板一覧を取得するサーバーをhttp://menu.5ch.net/bbsmenu.html
プロキシ設定でその他のサーバーにもチェック
.jdのboards.xmlを編集して2chを5chに
vi .jd/boards.xml
:%s/2ch/5ch/g
:wq
これでJDそのものは触らずに使えるようになった
0055login:Penguin
垢版 |
2017/10/07(土) 02:14:30.46ID:NJ1mDwqq
ちなみにプロキシ設定で書き込みのチェックはなくても書けるようになった
0056login:Penguin
垢版 |
2017/10/07(土) 02:18:00.84ID:NSACoI7P
前スレで出てた

~/.jd/boards.xml の内容を 2chから5chに置換

geditで置き換えて、2chproxy.plを更新したら使えるようになった

ただこれだけ
0057login:Penguin
垢版 |
2017/10/07(土) 03:20:04.75ID:TMBKlGeU
>>54、56
ENABLE_2CH_TO_nCH =>の値いくつにしてる?
0059login:Penguin
垢版 |
2017/10/07(土) 06:01:45.13ID:FAFvC4bI
>>58
そのアップデータって、手動で該当の行を上書きするの ?
006059
垢版 |
2017/10/07(土) 06:14:20.84ID:FAFvC4bI
>次回からは作成されたディレクトリ、 2chproxy.pl/ に移動し、
git pull
すれば更新されます。

今使っているのがv0.17.xだから、新たにver1.2.2を導入しなければいけないんだ。
ということだよね。
0061login:Penguin
垢版 |
2017/10/07(土) 08:02:46.75ID:NU12qwOL
boards.xmlってどこにありますか?
0062login:Penguin
垢版 |
2017/10/07(土) 08:15:23.48ID:Sm/Yc3i8
上に書いてあるじゃない
読まないの?
0063login:Penguin
垢版 |
2017/10/07(土) 09:03:06.87ID:8iZT/W8z
興味本位でJDのビルドやってるけど、随分時間かかるね
0064login:Penguin
垢版 |
2017/10/07(土) 09:06:57.91ID:XAtLM5FN
画像ファイルをクリックしたときに、開けなくてブラウザで開いたら見れるのだが
ビュワーでも全部開く事って出来ないの?
0065login:Penguin
垢版 |
2017/10/07(土) 09:20:00.47ID:8iZT/W8z
Makefile:503: ターゲット 'install-recursive' のレシピで失敗しました
0066login:Penguin
垢版 |
2017/10/07(土) 09:28:44.76ID:zg8M4L+Q
>>54
ありがとう^^ みんな神です
自分もMint18.2です
自分は~/otherbuild/2chprocというディレクトリを作ってそこに2chprocを置いてます
今回やったこと、レポジトリのjdを使用しています。otherbuildディレクトリが説明に出てきますが
各自作ってください

~/otherbuild/2chprocを削除
~/otherbuild/2chprocに移動してgit clone https://github.com/yama-natuki/2chproxy.pl.git
当然そこに2chproxy.plディレクトリが出来るのでそこへ移動(cd 2chproxy.pl)
その中のjd.desktopの3行目フルパス記入(***は各自環境違うのでなおしてね)
Exec=/home/***/otherbuild/2chproc/2chproxy.pl/jd.sh

その中のjd.shの8行目フルパス記入(***は各自環境違うのでなおしてね)
PROXY="/home/***/otherbuild/2chproc/2chproxy.pl/2chproxy.pl"

それから./install.sh

そしてデスクトップにあるjdアイコンをクリックしてjs起動
設定メニュー(C)からネットワーク(N)のプロキシ設定でその他のサーバーにもチェック、
ホスト名は127.0.0.1ポート8080

about:configの板一覧を取得するサーバーは自動的に5chになってました
ファイルメニュー(F)から板一覧再読込(R)を実行すると最初少し時間かかりましたが
問題なく取得
0067login:Penguin
垢版 |
2017/10/07(土) 09:29:08.47ID:8iZT/W8z
流れ的には

2ちゃんねるブラウザ「JD」をインストール

「JD」の板一覧取得の設定 → ここで取得ができず空白のまま落ちる

HTTPプロキシ変換スクリプト「2chproxy.pl」をインストール

2chproxy.plの設定

「JD」の設定
0068login:Penguin
垢版 |
2017/10/07(土) 09:31:35.91ID:zg8M4L+Q
当然ですが今jdを閉じてまた起動した時に~/.jd/boards.xmlを確認したら
全て自動的に2chが5chの直ってます
0070login:Penguin
垢版 |
2017/10/07(土) 09:33:14.38ID:8iZT/W8z
>>66
なんでそんなに複雑すぎる仕組みをあなたは作ったのかな?
もう少し単純にできないの?せめてV2Cのように
0071login:Penguin
垢版 |
2017/10/07(土) 09:37:36.42ID:W8RAnBEW
>>65
ビルド環境ちゃんと整ってないからだと思うぞ
confgureとmakeのエラーを全て見直し
0072login:Penguin
垢版 |
2017/10/07(土) 09:48:27.26ID:zg8M4L+Q
>>70
ん?あら、なんか$HOME/bin/ってのが勝手に作られてるw
もしかしてそんな面倒なことしなくても大丈夫だったのか
0073login:Penguin
垢版 |
2017/10/07(土) 09:52:44.53ID:TMBKlGeU
>>72
そもそも何がしたかったの?
0074login:Penguin
垢版 |
2017/10/07(土) 09:56:08.03ID:zg8M4L+Q
>>73
jd.shの8行目見てPROXY="$HOME/bin/2chproxy.pl"ってなってたので
そんなディレクトリもファイルもねえだろぼけ〜って早とちりして全部
自分で書き換えたっただけの話ですわ
まあこれでまともに動いてるからよしw
0075login:Penguin
垢版 |
2017/10/07(土) 10:14:27.00ID:ZQ4cifz9
>>64
自分は>>38です。

jd-2.8.9-171003に更新して「設定ーネットワークープロキシ」でその他のサーバ用のチェックを外したら
画像をjdで読み込むようになった。

>>58に2chproxy.pl v1.2.2が出ているみたいだけど自分は>>38の2chproxy.pl v1.2で画像を読めてる。

OS環境が違うと参考にならないかもしれないけど
0076login:Penguin
垢版 |
2017/10/07(土) 10:30:49.96ID:TMBKlGeU
>>74
ああgitで生成されるのに気付かなかったのね
0077login:Penguin
垢版 |
2017/10/07(土) 10:33:47.25ID:XAtLM5FN
>>75
実は、これは以前からで、画像ファイルによっては見れたり見れなかったりするのですが。

見れない時は、gnut is handshake failed Http://*****ってエラーが出て
ブラウザで見るとしたら、ブラウザでは画像が見れます。
何か、画像ビュワーの設定問題でも生じてるのでしょうか?
0078login:Penguin
垢版 |
2017/10/07(土) 10:41:14.77ID:zg8M4L+Q
>>76
うん・・

>>38にある
git clone -b test --depth 1 https://github.com/yama-natuki/JD.git jd
で今ディストリの2.8.9-15226から2.8.9-171003にbuild、make、installしてみた
ちなみに./configure --prefix=/usr --with-native
でディストリの上書き

結果確かにimugurの見れなかった画像がクリックで見れるようになったが
過去に取った画像のキャッシュが見れないのが出てきた(かなりの数)
また見れてる画像全てに縦線数本のゴミが写ってしまう
なのでディストリのjdに今から戻します
0079login:Penguin
垢版 |
2017/10/07(土) 10:58:20.16ID:zg8M4L+Q
>>78
ごめん、自己PCのグラボがおかしいみたい(TT)
戻しても縦スジ入ってたので再起動、電源抜いて20秒

こんでOKなのでまた今先のjdを
make distclean
autoreconf -i
./configure --prefix=/usr --with-native
make -j8
sudo make install
しましたw

過去の画像キャッシュはやっぱり再読込しないと駄目なのが結構出るけど
とりあえずこれでしばらく使ってみます^^
0080login:Penguin
垢版 |
2017/10/07(土) 11:14:21.05ID:ZQ4cifz9
>>77
以前からということでJDのバージョンは2.8.9-171003と違うのかな?

JD Ver 2.8.9-150226でhttpのリンクの画像は読めたけどhttpsのリンクはブラウザでしか見れなかったので
前スレのJD本体を変えると画像を読み込むとかのレスを参考にした。
[[[ 2ch ブラウザ JD 17 ]]]
http://mao.5ch.net/test/read.cgi/linux/1494846782/ の818,863を読んでJD本体に問題が出たとのことらしい。
926には本体じゃなくて2chproxy.plが原因だったと書き込みあるけど自分の場合は2chproxy.pl v1.2にしても
画像が読み込めなかったりした。

なので>>38のjd-2.8.9-171003に変更した。

今もう一度確かめると
JDの「設定>ネットワーク>プロキシ」でその他のサーバー用をチェックしても画像が見れるようになってた。
0081login:Penguin
垢版 |
2017/10/07(土) 11:25:52.42ID:zg8M4L+Q
お、言われてみれば2.8.9-から2.8.9-171003にしたらhttpsが行けるようになったわ
0082login:Penguin
垢版 |
2017/10/07(土) 13:57:07.00ID:5i7CUyYF
ビルドなんて今までしたことなかったから、2chproxy.plの差し替えでごまかしてきたけど、思い切って実行。
バージョンの表示が2.8.9-171003になって起動したから、とりあえず成功したようだ。
情報を書き込んでくれた皆さんに感謝。

自分がやったことまとめ。
Ubuntu16.04LTS(64bit)、ソフトウェアセンターからJDをインストールしただけの状態から開始。
まずシステム設定→ソフトウェアとアップデートと進み、「ソースコード」を対象に入れる。

https://github.com/yama-natuki/JD/tree/test を参考に
sudo apt-get install build-essential automake autoconf-archive git
加えて sudo apt-get build-dep jd も実行
git clone -b test --depth 1 https://github.com/yama-natuki/JD.git jd
cd jd
autoreconf -i
./configure
make
完了したら、「ホーム」にあるjdディレクトリからsrcディレクトリへ進みファイル「jd」をコピー、
「コンピューター」→usr→binに進み、その中に貼り付け。
※最後のファイルjdのコピーと貼り付けは、管理者権限ありで起動したファイラーでやらないとダメかも。
(端末からsudo nautilusで起動。コピーも貼り付けもこの時開いたウインドウで行う)
※bin内にもとからある「jd」を上書きするのは怖いので、予め「_jd」みたいにリネームして
おいた方が無難だと思う。 
これで自分はランチャのJDアイコンから2.8.9-171003になったJDが起動するようになった。
あとは2chproxy.plを差し替えて再起動すればいいはず。
0083login:Penguin
垢版 |
2017/10/07(土) 14:26:10.09ID:NJ1mDwqq
>>82
完成おめでとうございます
私も2.8.9-171003になりました
私の場合は/usr/local/binにコピーしました
リポジトリからのはSynapticで削除
完璧に動いてます
快適ですね

https://i.imgur.com/GOzubHJ.png
0084login:Penguin
垢版 |
2017/10/07(土) 14:27:24.72ID:xuA5wYEw
全くのトーシロの俺が>>82をまんま真似てやってみた
>加えて sudo apt-get build-dep jd も実行
ここでソース無いって言われて終了

('A`)
0085login:Penguin
垢版 |
2017/10/07(土) 14:31:12.92ID:NJ1mDwqq
>>84
構わずその下の
git clone -b test --depth 1 https://github.com/yama-natuki/JD.git jd
をコマンドしたら$HOMEにjdディレクトリができるはず
それがソースなので
cd jd
autoreconf -i 〜をやれば大丈夫ですよ
0086login:Penguin
垢版 |
2017/10/07(土) 14:34:53.47ID:gSljG15Q
古いJD入れる必要あるの?
0087login:Penguin
垢版 |
2017/10/07(土) 14:36:12.31ID:L3KDEPRx
>>85
make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止.

こんなんでました
どうしましょ?
0088login:Penguin
垢版 |
2017/10/07(土) 14:38:06.46ID:xuA5wYEw
違う方で書いたらID変わっちゃった
>>87も自分です
0089login:Penguin
垢版 |
2017/10/07(土) 14:42:58.62ID:NJ1mDwqq
>>87
その前に./configureでエラーが出ませんでした?
ライブラリなどがたりなければそこでエラーに表示されるはず
0090login:Penguin
垢版 |
2017/10/07(土) 14:45:06.40ID:Vuy4uumX
>>84
>>82 の7行目(空行含む)ちゃんとやった?
0091login:Penguin
垢版 |
2017/10/07(土) 14:46:38.45ID:TMBKlGeU
>>88
>>84
>全くのトーシロの俺が>>82をまんま真似てやってみた
と言ってるが
本当にまんまか?
ちなみにお使いのディストリとそのバージョンは?

取り敢えず最初からもう一度始めた方がいいと思う
逐一報告ヨロ(上手く行っても失敗してもな)

俺はすまんが4時前後に帰ってくる
0092login:Penguin
垢版 |
2017/10/07(土) 14:47:25.36ID:KMBsA8y/
>>88
他にerror出てない?
多分、何かpackageが足りないんだと思う
0093login:Penguin
垢版 |
2017/10/07(土) 14:54:08.13ID:L3KDEPRx
エラーはこれですかね?

./configure: line 6219: syntax error near unexpected token `GTKMM,gtkmm-2.4'
./configure: line 6219: `PKG_CHECK_MODULES(GTKMM,gtkmm-2.4 >= 2.4.0, , )'

Lubuntu16.04.3です
0095login:Penguin
垢版 |
2017/10/07(土) 14:56:36.41ID:zg8M4L+Q
>>84
Synaptic等のパッケージツールのオプションの所のレポジトリあたりに
ソースコードを有効ってチェックする所があるからそれをチェック
その後Synapticの更新か端末でsudo apt-get update

そんでsudo apt-get build-dep jd すればコンパイルに必要な物一式がインスコロールされる
0096login:Penguin
垢版 |
2017/10/07(土) 14:59:57.29ID:zg8M4L+Q
あと個人的な意見では若干使いやすくなるだけで基幹は古いソースのアプリを
わざわざコンパイルしても大きな動き(firefoxとかみたいにコンパイルすると動き早くなる)
の変化はないから完全に趣味の世界だと思われるが男はコンパが好き
0097login:Penguin
垢版 |
2017/10/07(土) 15:00:52.06ID:WoFBWgWs
多分、なつきちゃんがここのレスを見て大笑いしている光景が目に浮かぶ。
あなた達って、ユニークだえね〜

って、ふと思った。
0099login:Penguin
垢版 |
2017/10/07(土) 15:05:03.47ID:GXo9D83E
リポジトリのソースコードんとこにチェックが入ってない場合build-depでは「sources.listにソースの記述がないよ」風なエラーになる
逆にソースコードんとこにはチェックが入ってるけどjdの置いてあるuniverseにチェックが入ってない場合「jdのソースパッケージがないよ」ってエラーになる

>>84の場合この後者の状態なんじゃねーかな、確認してみ
0100login:Penguin
垢版 |
2017/10/07(土) 15:11:51.72ID:FLkuBCVm
>>86
いらないよ
zip落としてるのにgit cloneしてるヤツとかもいてイミフだけど自分を信じておk
■ このスレッドは過去ログ倉庫に格納されています

ニューススポーツなんでも実況