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 #50 Tue Dec 22 18:06:23 JST 2009 armv5tejl unknown
| 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

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

| 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

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

| improve this answer | | | | |

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.

| improve this answer | | | | |

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.

| 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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