- 论坛徽章:
- 1
|
Hi, My friends.
I wanted to install module ReadKey so i used command
cpan Term::ReadKey
I am getting error message: /bin/sh: cc: command not found
I tried to find which compilere I have
I used command
abcd-tstva2:~# which cc
abcd-tstva2:~# which CC
abcd-tstva2:~# which g++
abcd-tstva2:~# which c++
I got no result. Does that mean that no compiler is installed on my OS
Now, I am trying to install ReadKey manually
When I write at path ~/.cpan/sources/authors/id/J/JS/JSTOWE/TermReadKey-2.30
perl Makefile.PL
it works fine
But when I do make test
I get
abcd-tstva2:~/.cpan/sources/authors/id/J/JS/JSTOWE/TermReadKey-2.30# make test
cp ReadKey.pm blib/lib/Term/ReadKey.pm
AutoSplitting blib/lib/Term/ReadKey.pm (blib/lib/auto/Term/ReadKey)
/usr/bin/perl -I/usr/share/perl/5.8 genchars.pl
Writing termio/termios section of cchars.h... Done.
Checking for sgtty...
Sgtty NOT found.
Writing sgtty section of cchars.h... Done.
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -noprototypes -typemap /usr/share/perl/5.8/ExtUtils/typemap ReadKey.xs > ReadKey.xsc && mv ReadKey.xsc ReadKey.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.30\" -DXS_VERSION=\"2.30\" -fPIC "-I/usr/lib/perl/5.8/CORE" ReadKey.c
/bin/sh: cc: command not found
make: *** [ReadKey.o] Error 127
Saying
/bin/sh: cc: command not found
How should I fix this. I am new to Debain/Linux
I also tried following
abcd-tstva2:~# up2date cc
-su: up2date: command not found
abcd-tstva2:~# up2date CC
-su: up2date: command not found
abcd-tstva2:~# yum
-su: yum: command not found
abcd-tstva2:~# update CC
-su: update: command not found
abcd-tstva2:~# apt-get -b cc
E: Invalid operation cc
abcd-tstva2:~# apt-get -b CC
E: Invalid operation CC
abcd-tstva2:~# apt-get CC
E: Invalid operation CC
abcd-tstva2:~# apt-get cc
E: Invalid operation cc
So please guide me how to fix this problem |
|