Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've been messing around with my NAS which runs on Linux. I have root access, but there is no compiler. I seem to remember something about being able to compile on another system, but I'm not certain.

root@LSB1:~# uname -a
Linux LSB1 2.6.22.18-88f6281 #50 Tue Dec 22 18:06:23 JST 2009 armv5tejl unknown
share|improve this question
    
If this is a commercial NAS that runs Linux, the GPL may not compel them to give you compiler source (IANALicenseExpert), but it may well predispose them to give you the goods if asked nicely. –  msw Sep 20 '10 at 17:00
    
What distro are you running? Check the documentation for the distro's package manager. For me "yum install gcc" would do it. No need to compile anything. –  Joel J. Adamson Sep 21 '10 at 13:54
    
It is indeed a commercial NAS with embedded linux. –  Brian Ortiz Sep 21 '10 at 19:03
add comment

4 Answers

up vote 9 down vote accepted

Cross-compiling may be the solution for you It allows you to compile executables for one architecture on a system of a different architecture. Here's an introduction

share|improve this answer
    
This may even be the only solution as the NAS may not have enough system storage and RAM to build anything. Compiling will also be much faster. –  Kristof Provost Sep 21 '10 at 15:06
    
I selected this as the answer since cross-compiling is what I need to do, but the link doesn't explain how. –  Brian Ortiz Sep 24 '10 at 18:58
add comment

A distro without a package for GCC would be extraordinarily unlikely! You should not have to compile it, in other words, you can just use a package manager.

share|improve this answer
    
Its a commercial NAS with an embedded linux. They usally don't come with any package management. –  echox Sep 21 '10 at 15:17
    
OH...okay. Seems I have much more to learn about "NAS." –  Joel J. Adamson Sep 23 '10 at 15:06
add comment

Maybe there is a binary distribution available for your NAS? For example there are binary packages available for DNS323, not to mention that you can install Debian on it.

share|improve this answer
add comment

Maybe your platform is included in http://gcc.gnu.org/install/binaries.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.