:Makefile.am:required file`./README'not found と appears when making mecab-ch

Asked 2 years ago, Updated 2 years ago, 135 views

I would like to install mecab-ch (for Chinese).

If you know how to install it, please let me know.

Make Display Error Contents

[[email protected]]#make 
cd.&/bin/sh/root/desktop/mecab-naist-cdic-1.1.1-20120823/missing --run automake-1.10--gnu 
Use of /d modifier in translation operator at /usr/local/share/automake-1.10/Automake/Wrap.pm line 60.
Makefile.am:required file`./README'not found
make:*** [Makefile.in] Error 1

makefile.am After Changes

[[email protected]]#make
 cd.&/bin/sh/root/desktop/mecab-naist-cdic-1.1.1-20120823/missing --run automake-1.10--gnu
Use of /d modifier in translation operator at /usr/local/share/automake-1.10/Automake/Wrap.pm line 60.
cd.&/bin/sh/root/desktop/mecab-naist-cdic-1.1.1-20120823/missing --run autoconf/bin/sh./config.status --check
running CONFIG_SHELL=/bin/sh/bin/sh./configure --no-create --no-recursion


 configure documentation

Enter a description of the image here

makefile

2022-09-30 21:21

2 Answers

I think it can be solved by declaring that it does not conform to GNU.
Try adding the following options to Makefile.am:

AUTOMAKE_OPTIONS=foreign


2022-09-30 21:21

luna:~/mecab%pwd
/home/masm/mecab
luna —~/mecab%ls
mecab-0.996.tar.gz mecab-ch.tar.gz mecab-ipadic-2.7.0-20070801.tar.gz
luna —~/mecab% 

From this state,

mkdir src
cdsrc

tar zxf../mecab-0.996.tar.gz
cd mecab-0.996
./configure -- prefix=/home/masm/mecab
make
make check
make install
cd..

tar zxf../ mecab-ipadic-2.7.0-20070801.tar.gz
cd mecab-ipadic-2.7.0-20070801
./configure --prefix=/home/masm/mecab--with-mecab-config=/home/masm/mecab/bin/mecab-config
make
make install
echo dicrc=/home/masm/mecab/lib/mecab/dic/ipadic>>/home/masm/mecab/etc/mecabrc
cd..

tar zxf../ mecab-ch.tar.gz
cd mecab-ch
touch aclocal.m4
touch Makefile.in configure
chmod a+x configure
./configure --prefix=/home/masm/mecab--with-mecab-config=/home/masm/mecab/bin/mecab-config
cp mecab-naist-cdic-1.1.1-20120823/*./
make clean
make
make install
echo dicrc=/home/masm/mecab/lib/mecab/dic/naist-cdic>>/home/masm/mecab/etc/mecabrc

That's it,

luna:~/mecab%ls-al/home/masm/mecab/lib/mecab/dic/naist-cdic
Total 8224
drwxr-xr-x2masm users 4096 December 1004:13./
drwxr-xr-x4masm users 4096 December 1004:13../
-rw -r --r --1 mask users 262496 December 1004:13 char.bin
-rw -r --r -- 1 mask users 156 December 1004:13 dicrc
-rw-r --r --1 mask users 576 December 1004:13 left-id.def
-rw -r --r -- 1mas users 4054 December 1004:13 matrix.bin
-rw-r--r--1masm users472 December 1004:13 pos-id.def
-rw -r --r -- 1 mask users 153 December 1004:13 rewrite.def
-rw-r --r --1 mask users 576 December 1004:13 right-id.def
-rw-r--r--1masm users8114657 December 1004:13 sys.dic
-rw -r --r --1 mask users 4035 December 1004:13unk.dic
luna —~/mecab% 

Like this, I think it's probably installed.
I didn't try it by running it.

The warning that automatic, autoconf, and aclocal are required may be resolved by touch as described above.
I think what I needed was cp.


2022-09-30 21:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.