LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2008, 10:23 AM   #1
armnewbie123
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
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
 
Old 11-17-2008, 02:10 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
Old 11-18-2008, 04:16 AM   #3
armnewbie123
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 11-19-2008, 02:40 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The "crosstools" you are using should include a particular
libc, glibc (newlib?) with the headers, all called when
using the "gcc-arm" binary.
 
Old 11-27-2008, 04:13 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
embedded modules -cross compile ! ra2008 Linux - Embedded & Single-board computer 2 07-22-2008 08:31 PM
How to cross compile? jiyun0121 Linux - General 3 09-01-2005 06:15 PM
Qt Cross Compile werewolfolondon Linux - Software 2 02-25-2005 01:01 PM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM
Compile Error- /lib/modules/extra/modules.dep UpChuck Debian 2 01-11-2004 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration