LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where to download precompiled bash binaries, such as "time" and "top"? (https://www.linuxquestions.org/questions/linux-newbie-8/where-to-download-precompiled-bash-binaries-such-as-time-and-top-382904/)

elinuxqs 11-14-2005 12:02 AM

Where to download precompiled bash binaries, such as "time" and "top"?
 
I am a newbie. My host is Windows. My target is MontaVista Linux. I need bash commands "time" and "top". I don`t know how to cross compile bash source code. Are there precompiled bash binaries to download? I think when I copy the binaries into the bash directory, they can work well.

freakyg 11-14-2005 12:30 AM

Quote:

The procps package is maintained by Robert Love and was created by
Michael Johnson.
install the procps package

elinuxqs 11-14-2005 02:47 AM

I am sorry I don`t know how to install procps either. Are there executables to download?
*Thank you*
I am so lazy:)

cs-cam 11-14-2005 03:00 AM

Quote:

Originally posted by elinuxqs
I am sorry I don`t know how to install procps either. Are there executables to download?
*Thank you*
I am so lazy:)

Then don't be so damn lazy and go find your own packages to install. If I felt like looking up information for other people everyday I'd go get a job as a librarian or something. Stupid bum.

elinuxqs 11-14-2005 03:11 AM

I have googled "procps" and tried lots of methods to install the package for several hours, but either errors or warnings got. I am so stupid:cry:

$ make install
gcc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -DSHARED=1 -fpic proc/escape.c -o proc/escape.o
proc/escape.c:1: warning: -fpic ignored for target (all code is position independent)
In file included from proc/readproc.h:14,
from proc/escape.h:7,
from proc/escape.c:15:
proc/pwcache.h:12: error: syntax error before "uid"
proc/pwcache.h:12: warning: function declaration isn't a prototype
proc/pwcache.h:13: error: syntax error before "gid"
proc/pwcache.h:13: warning: function declaration isn't a prototype
In file included from proc/escape.h:7,
from proc/escape.c:15:
proc/readproc.h:164: error: syntax error before "uid_t"
proc/readproc.h:164: warning: no semicolon at end of struct or union
proc/readproc.h:172: error: syntax error before '}' token
proc/readproc.h:172: warning: type defaults to `int' in declaration of `PROCTAB'
proc/readproc.h:172: warning: data definition has no type or storage class
proc/readproc.h:175: error: syntax error before '*' token
proc/readproc.h:175: warning: declaration of 'flags' shadows a global declaration
proc/readproc.h:167: warning: shadowed declaration is here
proc/readproc.h:175: warning: type defaults to `int' in declaration of `openproc'
proc/readproc.h:175: warning: data definition has no type or storage class
proc/readproc.h:186: error: syntax error before "PROCTAB"
proc/readproc.h:186: warning: function declaration isn't a prototype
proc/readproc.h:193: warning: declaration of 'flags' shadows a global declaration
proc/readproc.h:167: warning: shadowed declaration is here
proc/readproc.h:196: error: syntax error before '*' token
proc/readproc.h:196: warning: function declaration isn't a prototype
proc/readproc.h:199: error: syntax error before '*' token
proc/readproc.h:199: warning: function declaration isn't a prototype
proc/readproc.h:200: error: syntax error before '*' token
proc/readproc.h:200: warning: function declaration isn't a prototype
In file included from proc/escape.c:15:
proc/escape.h:19: warning: declaration of 'flags' shadows a global declaration
proc/readproc.h:167: warning: shadowed declaration is here
proc/escape.c: In function `escape_strlist':
proc/escape.c:163: warning: declaration of 'i' shadows a global declaration
proc/readproc.h:166: warning: shadowed declaration is here
proc/escape.c: At top level:
proc/escape.c:179: warning: declaration of 'flags' shadows a global declaration
proc/readproc.h:167: warning: shadowed declaration is here
make: *** [proc/escape.o] Error 1

cs-cam 11-14-2005 03:46 AM

If you're getting errors then let us know, we're happy to help you resolve an error but doing research for idiots who won't do their own, that I'm not so fond of.

What version of MontaVista are you using? Their web site says that the Pro version comes with these packages. What architecture are you running this on? If you tell us then then it shouldn't be too hard to give you a way to cross-compile. Finding pre-built packages for a commerical verision of linux wouldn't be easy, cross-compiling on the other hand is :)

elinuxqs 11-14-2005 05:18 AM

I am so newbiely a newbie that I thought any executable would be OK regardless of OS and CPU types.
I`ve got a commercial product without the source code. But I can telnet to it. I find it slow so I would like to find out what`s the matter. I know that "time" and "top" can help me with more infomation than "ps", but unfortunately there`s only "ps" for me. So I was looking forward to "time" and "top" executables.
Now I`ve known that no omnipotent "exe" or "bin" exists. Perhaps it`s better to learn how to cross-compile by myself first than to ask "how" when I know nothing about Linux.
Thank you cs-cam & freakyg.

cs-cam 11-14-2005 06:59 AM

No, by all means ask how :) There are binaries that are compiled to run on many architectures but they wouldn't cover embedded devices I wouldn't think. If you let us know the arch on which you have this linux running then we can help you work from there.

elinuxqs 11-14-2005 07:08 AM

The arch is Intel XScale.

cs-cam 11-14-2005 07:27 AM

http://www.lart.tudelft.nl/lartware/compile-tools/
http://www.intel.com/design/intelxsc...1121/index.htm

There are a couple of links that should help you. I haven't done any cross-compiling before but it doesn't look too difficult and those sites seem to provide enough information to work from. The Intel XScale seems to have an ARM core so I'm guessing that any current ARM cross-compiler should produce binaries that work.

Have fun :D

elinuxqs 11-14-2005 07:36 AM

Thank cs-cam very very much. I`ll make my efforts:) :study: :)

runlevel0 11-14-2005 09:07 AM

Quote:

Originally posted by elinuxqs
I am sorry I don`t know how to install procps either. Are there executables to download?
*Thank you*
I am so lazy:)

Go to your distro's homepage and look for them in the search tab.

elinuxqs 11-14-2005 08:36 PM

Oh, I am not a customer of MontaVista. I came to the "Support" page and found a user name and a password needed.


All times are GMT -5. The time now is 01:48 PM.