LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2005, 01:02 AM   #1
elinuxqs
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Rep: Reputation: 0
Question 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.

Last edited by elinuxqs; 11-14-2005 at 01:26 AM.
 
Old 11-14-2005, 01:30 AM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Quote:
The procps package is maintained by Robert Love and was created by
Michael Johnson.
install the procps package
 
Old 11-14-2005, 03:47 AM   #3
elinuxqs
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Unhappy

I am sorry I don`t know how to install procps either. Are there executables to download?
*Thank you*
I am so lazy
 
Old 11-14-2005, 04:00 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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.
 
Old 11-14-2005, 04:11 AM   #5
elinuxqs
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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

$ 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
 
Old 11-14-2005, 04:46 AM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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
 
Old 11-14-2005, 06:18 AM   #7
elinuxqs
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 11-14-2005, 07:59 AM   #8
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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.
 
Old 11-14-2005, 08:08 AM   #9
elinuxqs
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
The arch is Intel XScale.
 
Old 11-14-2005, 08:27 AM   #10
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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
 
Old 11-14-2005, 08:36 AM   #11
elinuxqs
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thank cs-cam very very much. I`ll make my efforts
 
Old 11-14-2005, 10:07 AM   #12
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
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.
 
Old 11-14-2005, 09:36 PM   #13
elinuxqs
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Oh, I am not a customer of MontaVista. I came to the "Support" page and found a user name and a password needed.
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 10:00 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-07-2005 12:44 AM
bash equivalence of tcsh "alias em "emacs \!:1 &""? rgiggs Slackware 3 07-29-2004 03:07 AM
bash-2.05b# Xlib: extension "XFree86-DRI" missing on display ":0.0". citrus Linux - General 8 02-22-2004 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 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