Other Help Topics :: How to install CPAN?



Download gcc1.dsl from the system section of the repository.  then open the emelfm program, select that file and press the mydsl to load gcc, g++, and make.

Depending what you are trying to do, you might also need to get the dsl-dpkg.dsl package so that you can get libraries and headers.  After you install dsl-dpkg.dsl (same as above), open an xshell and type:

sudo apt-get update
apt-get install libncurses5-dev
apt-get install libreadline4-dev
exit

Yeah, now I have gcc, g++ and make, but when I typing (on cpan shell) install Curses I get about bilion messages like:

....
function 'set_field_userptr' NOT found
....
variable 'LINES' NOT found
....
typedef 'attr_t' NOT found
....
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHEARDS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -02 -DVERSION=\"1.13\" -fPIC
blah balh...
/bin/sh: line 1: cc: command not found
make: *** [Curses.o] error 127

What now?

did you run the apt-get command to install libncurses5-dev like the previous post said?  libncurses is curses library, which your CURSES may need to compile.

It looks like you are not finding the cc comand.  gcc is the cc compiler, so you can create a symbolic link between the one and the other.  Type in an xterm:

sudo ln -s /usr/bin/gcc /usr/bin/cc

If you are doing all these fancy loads and compiles you should probably also load the gnu-utils.dsl package from the repository as well.  It will add some functionality that you might need.

Thanks clacker! Now I get Curses :)

original here.