2ch browser for linux

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

2ch browser for linux

#1

帖子 寺島聰子 » 2017-08-02 9:24

https://github.com/yama-natuki/JD/tree/test
----------------------------------------------------------

jin@1:~$ 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.61 KiB | 398.00 KiB/s, done.
Resolving deltas: 100% (49/49), done.
Checking connectivity... done.
jin@1:~$ cd jd

錯誤使用下面的命令:

jin@1:~/jd$ autoreconf -i
configure.ac:15: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

---------------------------------------------------------------
謝謝!
上次由 寺島聰子 在 2017-08-02 20:11,总共编辑 1 次。
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: configure.ac:15: error: possibly undefined macro

#2

帖子 寺島聰子 » 2017-08-02 11:16

jin@1:~$ sudo apt-get build-dep jd
[sudo] password for jin:
Reading package lists... Done
E: Unable to find a source package for jd

jin@1:~$ sudo apt-get install build-essential automake autoconf-archive git
Reading package lists... Done
Building dependency tree
Reading state information... Done
automake is already the newest version (1:1.15-4ubuntu1).
automake set to manually installed.
build-essential is already the newest version (12.1ubuntu2).
git is already the newest version (1:2.7.4-0ubuntu1.1).
The following packages were automatically installed and are no longer required:
cmigemo-common libmigemo1 linux-headers-4.4.0-66
linux-headers-4.4.0-66-generic linux-headers-4.4.0-75
linux-headers-4.4.0-75-generic linux-image-4.4.0-66-generic
linux-image-4.4.0-75-generic linux-image-extra-4.4.0-66-generic
linux-image-extra-4.4.0-75-generic nkf snap-confine
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
autoconf-archive
0 upgraded, 1 newly installed, 0 to remove and 112 not upgraded.
Need to get 637 kB of archives.
After this operation, 6,030 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 autoconf-archive all 20150925-1 [637 kB]
Fetched 637 kB in 0s (813 kB/s)
Selecting previously unselected package autoconf-archive.
(Reading database ... 290378 files and directories currently installed.)
Preparing to unpack .../autoconf-archive_20150925-1_all.deb ...
Unpacking autoconf-archive (20150925-1) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Setting up autoconf-archive (20150925-1) ...

jin@1:~$ sudo apt-get build-dep jd
Reading package lists... Done
E: Unable to find a source package for jd
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: configure.ac:15: error: possibly undefined macro

#3

帖子 astolia » 2017-08-02 11:41

sudo apt install libtool
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

2ch browser for linux

#4

帖子 寺島聰子 » 2017-08-02 12:01

2channel(日語:2ちゃんねる,可譯為二頻道、第二頻道、第二台等等),一般簡稱2ch,是一個大型的日本網路論壇,擁有超過1170萬用戶(2009年統計)[3]。2ch基本上是一個非常巨大的留言板集合體

jin@1:~$ sudo apt install libtool
[sudo] password for jin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cmigemo-common libmigemo1 linux-headers-4.4.0-66
linux-headers-4.4.0-66-generic linux-headers-4.4.0-75
linux-headers-4.4.0-75-generic linux-image-4.4.0-66-generic
linux-image-4.4.0-75-generic linux-image-extra-4.4.0-66-generic
linux-image-extra-4.4.0-75-generic nkf snap-confine
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libltdl-dev
Suggested packages:
libtool-doc gfortran | fortran95-compiler gcj-jdk
The following NEW packages will be installed:
libltdl-dev libtool
0 upgraded, 2 newly installed, 0 to remove and 112 not upgraded.
Need to get 355 kB of archives.
After this operation, 1,857 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 libltdl-dev amd64 2.4.6-0.1 [162 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 libtool all 2.4.6-0.1 [193 kB]
Fetched 355 kB in 0s (967 kB/s)
Selecting previously unselected package libltdl-dev:amd64.
(Reading database ... 291486 files and directories currently installed.)
Preparing to unpack .../libltdl-dev_2.4.6-0.1_amd64.deb ...
Unpacking libltdl-dev:amd64 (2.4.6-0.1) ...
Selecting previously unselected package libtool.
Preparing to unpack .../libtool_2.4.6-0.1_all.deb ...
Unpacking libtool (2.4.6-0.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libltdl-dev:amd64 (2.4.6-0.1) ...
Setting up libtool (2.4.6-0.1) ...
jin@1:~$ sudo apt-get build-dep jd
Reading package lists... Done
E: Unable to find a source package for jd
jin@1:~$
感謝
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: configure.ac:15: error: possibly undefined macro

#5

帖子 astolia » 2017-08-02 12:31

なぜsudo apt-get build-dep jd命令を使う?
直接、autoreconf -iをしよう!
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: configure.ac:15: error: possibly undefined macro

#6

帖子 寺島聰子 » 2017-08-02 13:47

jin@1:~$ 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.61 KiB | 257.00 KiB/s, done.
Resolving deltas: 100% (49/49), done.
Checking connectivity... done.
jin@1:~$ cd jd
jin@1:~/jd$ autoreconf -i
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
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'
jin@1:~/jd$
コマンドが通りました! 
The command passed! 太谢谢你了!
日本語で書いてくれてありがとうございます
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: configure.ac:15: error: possibly undefined macro

#7

帖子 寺島聰子 » 2017-08-02 13:55

文章主題を「如何使用GitHub的不理解」に変更したいけど、やり方がわかりません。

我想改變句子主語的“如何使用GitHub的特定非的理解”,不認識路。
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: configure.ac:15: error: possibly undefined macro

#8

帖子 寺島聰子 » 2017-08-02 14:09

jin@1:~/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
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-pc-linux-gnu
checking host system type... x86_64-pc-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 how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-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
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking for svn... no
checking for svnversion... no
checking for md5sum... /usr/bin/md5sum
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.
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: configure.ac:15: error: possibly undefined macro

#9

帖子 寺島聰子 » 2017-08-02 14:49

https://ja.osdn.net/projects/jd4linux/w ... 9%E6%B3%95
Ubuntu

Synaptic からインストール、または端末を開いて 

sudo apt-get install jd

ubuntu11.04日本語版でsvn版をビルドする方法

sudo apt-get -y install subversion
sudo apt-get -y install autoconf
sudo apt-get -y install libtool
sudo apt-get -y install libgtkmm-2.4-dev

sudo apt-get -y install libgnutls-dev
sudo apt-get -y install ttf-ipamonafont
sudo apt-get -y install libgtkmm-2.4-dev
を入れるのであろうと
端末から
jin@1:~$ sudo apt-get -y install libgtkmm-2.4-dev

エラーが出たので、慌てて閉じて、

libgtkmm-2.4-dev を Synaptic からインストール。今度はSynapticが応答停止。
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: configure.ac:15: error: possibly undefined macro

#10

帖子 astolia » 2017-08-02 15:25

寺島聰子 写了:文章主題を「如何使用GitHub的不理解」に変更したいけど、やり方がわかりません。
ここです
捕获2.JPG
でも、この問題はGithubと関係なくて、だたシステム設定を変更する必要があります。
sudo add-apt-repository universe
sudo apt update

ソースコードからのコンパイルする必要はもうありません,直接バイナリパッケージをインストール
sudo apt install jd
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: configure.ac:15: error: possibly undefined macro

#11

帖子 寺島聰子 » 2017-08-02 19:54

jin@1:~$ sudo add-apt-repository universe
[sudo] password for jin:
'universe' distribution component is already enabled for all sources.
jin@1:~$ sudo apt update
Get:1 http://archive.ubuntulinux.jp/ubuntu xenial InRelease [17.5 kB]
Hit:2 http://jp.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Ign:4 http://archive.ubuntulinux.jp/ubuntu-ja-non-free xenial InRelease
Hit:5 http://archive.ubuntulinux.jp/ubuntu-ja-non-free xenial Release
Get:6 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Ign:7 http://archive.ubuntulinux.jp/ubuntu xenial/main Sources
Ign:8 http://archive.ubuntulinux.jp/ubuntu xenial/main amd64 Packages
Ign:9 http://archive.ubuntulinux.jp/ubuntu xenial/main i386 Packages
Ign:10 http://archive.ubuntulinux.jp/ubuntu xenial/main Translation-en
Get:7 http://archive.ubuntulinux.jp/ubuntu xenial/main Sources [3,056 B]
Get:8 http://archive.ubuntulinux.jp/ubuntu xenial/main amd64 Packages [3,728 B]
Get:9 http://archive.ubuntulinux.jp/ubuntu xenial/main i386 Packages [3,732 B]
Get:10 http://archive.ubuntulinux.jp/ubuntu xenial/main Translation-en [1,820 B]
Get:12 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:13 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [593 kB]
Get:14 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [573 kB]
Get:15 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [240 kB]
Get:16 http://jp.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7,804 B]
Get:17 http://jp.archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [7,804 B]
Get:18 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [510 kB]
Get:19 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [493 kB]
Get:20 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [198 kB]
Get:21 http://jp.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [15.5 kB]
Get:22 http://jp.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [14.6 kB]
Get:23 http://jp.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [7,540 B]
Get:24 http://jp.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [5,804 B]
Get:25 http://jp.archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [5,816 B]
Get:26 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [316 kB]
Get:27 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [298 kB]
Get:28 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [133 kB]
Get:29 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [149 kB]
Get:30 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [133 kB]
Get:31 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [77.0 kB]
Fetched 4,115 kB in 7s (522 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
173 packages can be upgraded. Run 'apt list --upgradable' to see them.
jin@1:~$ sudo apt install jd
[sudo] password for jin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-75
linux-headers-4.4.0-75-generic linux-image-4.4.0-66-generic
linux-image-4.4.0-75-generic linux-image-extra-4.4.0-66-generic
linux-image-extra-4.4.0-75-generic snap-confine
Use 'sudo apt autoremove' to remove them.
Suggested packages:
fonts-konatu | fonts-monapo | fonts-mona
The following NEW packages will be installed:
jd
0 upgraded, 1 newly installed, 0 to remove and 173 not upgraded.
Need to get 1,410 kB of archives.
After this operation, 8,217 kB of additional disk space will be used.
Get:1 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 jd amd64 1:2.8.9-150226-5build1 [1,410 kB]
Fetched 1,410 kB in 0s (2,128 kB/s)
Selecting previously unselected package jd.
(Reading database ... 291560 files and directories currently installed.)
Preparing to unpack .../jd_1%3a2.8.9-150226-5build1_amd64.deb ...
Unpacking jd (1:2.8.9-150226-5build1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up jd (1:2.8.9-150226-5build1) ...
jin@1:~$
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: 2ch browser for linux

#12

帖子 astolia » 2017-08-02 20:20

さて、端末で jd を実行する
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: 2ch browser for linux

#13

帖子 寺島聰子 » 2017-08-03 19:30

https://www.hiroom2.com/2016/05/12/ubun ... 4%E6%96%B9

2 Difference between apt upgrade and apt-get upgrade

Apt upgrade may install new packages. Apt-get upgrade will not install new packages.

Apt dist - upgrade / apt In dist - upgrade, you may delete existing packages as well as adding new packages. This is different from apt upgrade / apt - get upgrade.

Basically it is better to use apt upgrade.
------------------------------------------

Sudo apt update Update package list
(Be sure to execute it when adding / deleting repository)

Sudo apt upgrade Update package
(Use this command when updating normal packages)
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: 2ch browser for linux

#15

帖子 寺島聰子 » 2017-08-06 22:42

https://www.karelie.net/install-2ch-bro ... or-ubuntu/
于Ubuntu 2ch浏览器“JD”全行施法之介。

易知此页

>2ch浏览器”JD“安装
sudo apt-get install jd
然,为记述,
>sudo add-apt-repository universe
sudo apt update
sudo apt install jd
比,“何异”者乎?施JD版者乎?
回复