lululau/ccal

openSUSE42.1无法运行

Opened this issue · 3 comments

报错提示如下:
Can't locate Calendar/China.pm in @INC (you may need to install the Calendar::China module) (@INC contains: /usr/lib/perl5/site_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .) at /usr/local/bin/ccal line 8. BEGIN failed--compilation aborted at /usr/local/bin/ccal line 8.
请问如何解决呢 谢谢

git clone https://github.com/lululau/ccal
cd ccal/lib/
sudo perl Makefile.PL

试了 不管用啊~
`xuan@SUSE:/src/ccal> l
总用量 12
-rw-r--r-- 1 xuan users 694 1月 2 13:21 README.md
-rwxr-xr-x 1 xuan users 4245 1月 2 13:21 ccal
drwxr-xr-x 5 xuan users 188 1月 2 13:32 lib
xuan@SUSE:
/src/ccal> cd lib/
xuan@SUSE:/src/ccal/lib> l
总用量 60
-rw-r--r-- 1 xuan users 1283 1月 2 13:21 README
-rw-r--r-- 1 xuan users 793 1月 2 13:21 META.yml
-rw-r--r-- 1 xuan users 251 1月 2 13:21 MANIFEST
-rw-r--r-- 1 xuan users 377 1月 2 13:21 Makefile.PL
-rw-r--r-- 1 xuan users 1379 1月 2 13:21 ChangeLog
-rw-r--r-- 1 xuan users 140 1月 2 13:21 Build.PL
drwxr-xr-x 2 xuan users 20 1月 2 13:21 bin
drwxr-xr-x 2 xuan users 44 1月 2 13:21 t
drwxr-xr-x 3 xuan users 41 1月 2 13:21 lib
-rw-r--r-- 1 root root 27957 1月 2 13:32 Makefile
-rw-r--r-- 1 root root 788 1月 2 13:32 MYMETA.json
-rw-r--r-- 1 root root 426 1月 2 13:32 MYMETA.yml
xuan@SUSE:
/src/ccal/lib> sudo perl Makefile.PL
xuan's password:
Writing Makefile for Calendar
Writing MYMETA.yml and MYMETA.json
xuan@SUSE:~/src/ccal/lib> ccal
Can't locate Calendar/China.pm in @inc (you may need to install the Calendar::China module) (@inc contains: /usr/lib/perl5/site_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .) at /usr/local/bin/ccal line 8.
BEGIN failed--compilation aborted at /usr/local/bin/ccal line 8.

sorry,然后在 lib 目录下执行

sudo make
sudo make install