Cross compile Perl Modules
Hi,
We have an arm chip with linux installed on it. Perl is installed by default but we want to install some Perl modules on it aswell. Problem is make is not installed on it and I've no idea how to install make. There is a cross compiler that comes with the development board (gcc) that i assume we can use to compile our perl modules but how can i install the perl modules if make is not installed. as in i cannot call make install to install the modules. anyone got any good links how i can install make? (maybe compile/install it) Have googled but nothing has come up solid. Or am i missing something here? Can i use gcc instead of make? Seems most programs (minicom etc...) require make to install it.... Many thanks |
Suggestion 1) Use the crosscompiler to compile make
and move the executable file "make" to the arm board. 2) Or use the executable from a Debian package. (There are lots of "arm packages" , 'make' too) http://packages.debian.org/etch/make http://packages.debian.org/etch/arm/make/download |
Thanks for the reply.
Actually got a little further - but now seems i have a problem with gcc. I cross compiled make on another pc and copied the entire folder over (Wasn't sure if make depends on anything). But now if i try to compile minicom on the arm board, i do in minicom dir ./configure and i get an error saying C compiler cannot create executables. I think my gcc environment needs tuning (i.e. paths to lib files etc set in environment variables) as i cannot even compile a simple C hello world program as it cant find the stdio.h header files. Any ideas what env variables need to be set for gcc?? Many thanks |
The "crosstools" you are using should include a particular
libc, glibc (newlib?) with the headers, all called when using the "gcc-arm" binary. |
Another thing : Perl modules are not compiled
for a particular architecture, so you can in fact use a module also usable on x86. Example : Debian, a lot of packages for arm, and you will see, that perl modules are for "all architectures". (May be not all packages). |
All times are GMT -5. The time now is 12:14 PM. |