お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2012-08-04 16:59:35

jump-up
メンバ
From: Kitakyusyu-city, Fukuoka
登録日: 2012-08-04

青空文庫ビューワーXJP2_2.9.3のインストールでエラーが出て先に進めない(初心者)

Linux&Ubuntu初心者です。Ubuntu12.04にXJP2_2.9.3をインストールしたいと思い、以下のURLを参考にしました。
http://gigazine.net/news/20091012_netwalker_xjp/
1)コンパイル環境の構築と2)XJP2の入手までは問題なく完成していると思います。
その後、端末でXJP2ディレクトリに移動し./configureまでは実行できます。
ところがmake installを実行すると以下のようなエラーが出て自力では解決できません。
いろいろ検索したのですが、どうにもわからずお手上げです。
ーーエラーメッセージーー

root@-AOD257:~/XJP2_2.9.3# make install
cd . && /bin/bash /home//XJP2_2.9.3/missing --run aclocal-1.10
cd . && /bin/bash /home//XJP2_2.9.3/missing --run automake-1.10 --gnu
cd . && /bin/bash /home//XJP2_2.9.3/missing --run autoconf
/bin/bash ./config.status --recheck
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --no-create --no-recursion
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
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 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 locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether closedir returns void... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking return type of signal handlers... void
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for memset... yes
checking for mkdir... yes
checking for setlocale... yes
checking for strstr... yes
checking for sin in -lm... yes
checking for iconv... yes
checking for gzopen in -lz... yes
checking for pthread_create in -lpthread... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XftFontOpen in -lXft... yes
./configure: line 5981: xft-config: command not found
./configure: line 5982: xft-config: command not found
configure: creating ./config.status
/bin/bash ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands
Making install in src
make[1]: ディレクトリ `/home//XJP2_2.9.3/src' に入ります
gcc -DPACKAGE_NAME=\"XJP2\" -DPACKAGE_TARNAME=\"xjp2\" -DPACKAGE_VERSION=\"2.9.3\" -DPACKAGE_STRING=\"XJP2\ 2.9.3\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CTYPE_H=1 -DHAVE_PWD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_STRFTIME=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_SETLOCALE=1 -DHAVE_STRSTR=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBXFT=1 -I.     -O2 -Wall -ffast-math  -MT xtext_main.o -MD -MP -MF .deps/xtext_main.Tpo -c -o xtext_main.o xtext_main.c
In file included from /usr/include/X11/Xft/Xft.h:39:0,
                 from xtext.h:11,
                 from xtext_main.c:11:
/usr/include/ft2build.h:56:38: 致命的エラー: freetype/config/ftheader.h: そのようなファイルやディレクトリはありません
コンパイルを停止しました。
make[1]: *** [xtext_main.o] エラー 1
make[1]: ディレクトリ `/home/takujikubo/XJP2_2.9.3/src' から出ます
make: *** [install-recursive] エラー 1
root@-AOD257:~/XJP2_2.9.3#

以上です。まだ初心者につき用語等よくわからないところもありますが、よろしくご教授いただけると幸いです。

オフライン

 

#2 2012-08-04 22:59:30

vbk
メンバ
From: Lake Hamana in Hamamatsu
登録日: 2009-12-22

Re: 青空文庫ビューワーXJP2_2.9.3のインストールでエラーが出て先に進めない(初心者)

jump-up による投稿:

root@-AOD257:~/XJP2_2.9.3# make install

rootでログインしているのでしょうか。
特殊な事情がない限り、(rootとは異なる)管理者ユーザーでログイン後、sudoを使うようにしましょう。
(例えば、インストール時に設定したユーザーには管理者権限が与えられており、sudoを使えます。)
https://wiki.ubuntulinux.jp/UbuntuTips/Others/RootSudo

./configureの前に「CPPFLAGS="-I/usr/include/freetype2"」をつけると、コンパイルが通ると思います。

コード:

$ CPPFLAGS="-I/usr/include/freetype2" ./configure
$ make
$ sudo make install

オフライン

 

#3 2012-08-05 10:02:39

jump-up
メンバ
From: Kitakyusyu-city, Fukuoka
登録日: 2012-08-04

Re: 青空文庫ビューワーXJP2_2.9.3のインストールでエラーが出て先に進めない(初心者)

おはようございます。ご指示のように実行してみましたが、結果は同じでした。
現在adobe airで動くair草子とwineで動くウインドウズアプリの「扉」という縦書きテキストビューワを入れていますが、
air草子は使い勝手が今一つ、扉はwineが噛んでいるせいか、全画面表示等の作業が今一つubuntu初心者であるため
windowsのようには自分の思い通りにならない感じなんです。
XJP2は色々なホームページを見る限り一番使い勝手も良さそうで期待してるんですが、使えるまでの敷居が高いのが残念です。

オフライン

 

#4 2012-08-05 17:17:45

Tako090929
メンバ
登録日: 2009-09-29

Re: 青空文庫ビューワーXJP2_2.9.3のインストールでエラーが出て先に進めない(初心者)

vbk さんのやり方でコンパイルも通りました。
夏目漱石のこころをダウンロードして(zip)表示できています。
設定ファイルがEUCで、変更する項目の位置もかわっているので
nkf かなにかでUTFに変換した方が作業しやすいかも。

オフライン

 

#5 2012-08-05 22:35:53

jump-up
メンバ
From: Kitakyusyu-city, Fukuoka
登録日: 2012-08-04

Re: 青空文庫ビューワーXJP2_2.9.3のインストールでエラーが出て先に進めない(初心者)

お世話になります。原因がわからないので、ubuntu12.04自体を再インストールしました。そしてアップデートマネージャーで最新の状態にし、googlechromeだけ追加インストールした時点でXJP2のインストールを行って見ました。Tako092929さんができたということだったので、思いきりました。そしてvbkさんのご指示のとおりにやってみたところ無事インストール起動までできました。
まだ、設定ファイルが未設定のためうまく行っていませんがどうもありがとうございました。

ところでxjp2は12.04では端末から起動するしかないんでしょうか?ランチャーに登録しても起動させられずにがっかりです。
操作も覚えないといけないんですね。とりあえず色々いじってみます。どうもありがとうございました。

オフライン

 

#6 2012-08-09 20:47:01

jump-up
メンバ
From: Kitakyusyu-city, Fukuoka
登録日: 2012-08-04

Re: 青空文庫ビューワーXJP2_2.9.3のインストールでエラーが出て先に進めない(初心者)

お世話になります。ubuntu12.04で縦書きテキスト形式(青空文庫)のファイルを読みたいと試行錯誤してきました。
結局、今のところ以下のようなものを試してみました。
1)AdobeAir+Air草子
2)XJP2
3)Calibre
4)Wine+Leeyes(Windows用)、+扉(同)、TxtMiru(同)
その結果、
1)は読む分には文句ありませんが、しおりがつけれません。
2)今一つ使い勝手がよくありません。
3)見開きにできません。
4)扉は読むにはいいのですが、設定がうまくできずカスタマイズがうまくいきません。
 -TxtMiruはうまくないです。
結論として、4)のLeeyesが本来は漫画(画像)ビューワなのですが、ちょうどいい具合にテキストファイルが縦書き表示され
カスタマイズは白黒反転させれば白地に黒文字で最も見やすく、しおりも問題なく昨日しました。
なお、hide file extというエラーが出ることがありますが、参照先のwindows7フォルダオプションで拡張子を表示する、隠しフォルダを表示する、ubuntu12.04で隠しフォルダを表示する、wineでドットフォルダを表示するにしてからインストールすると表示が消え、問題なく動作しています。
ご参考まで

オフライン

 

Board footer

Powered by FluxBB