Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-29-2005, 12:51 PM
|
#1
|
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Rep:
|
Using bash as an alternative to ash?
I have two Linux systems on my machine: a SuSE 9.0 system, and a light "media player" distro called movix2.
Unfortunately Movix2 includes an ash shell instead of bash, and unlike bash, ash does not seem to handle array variables that I use in an important script of mine.
It would be very time consuming to rewrite the script, so I thought I might symlink bash and the required libraries from my SuSE system to the movix2 system.
I symlinked bash to /usr/local/bin/bash; besides some libraries like libreadline, libhistory (libc.so.6 seemed to be already there), when I was faced with the following error message when trying to run my script by bash under movix2:
libc.so.6: required by libreadline.so.x: version GCC_xxxx not found
What does this error message mean? Can it be solved by symlinking some other files from my SuSE system to movix2? Which ones?
P.S.
Since movix2 is a mini distro specifically designed for playing multimedia files, it does not include gcc, so compiling bash or anything under movix2 seems to be impossible. That is why I try to use the compiled SuSE bash and library binaries under movix2.
I would be glad if you could suggest me a better solution that simply works.
Last edited by J_Szucs; 05-29-2005 at 01:04 PM.
|
|
|
|
05-29-2005, 07:40 PM
|
#2
|
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
compile bash statically, this way it wont depend on libs (and since they are different distros, if you compile under 1, it might not work on another, due to library differences between the distros)
then just copy the executable over to that movie distros place
|
|
|
|
05-30-2005, 01:36 AM
|
#3
|
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Original Poster
Rep:
|
Well, actually I have already tried to get some info on how to compile (link) programs statically, but I could not find anything useful.
How could it be done? Should I use a surplus option to the configure script, or edit the makefile?
|
|
|
|
05-30-2005, 04:44 AM
|
#4
|
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
i think you need to pass the "-static" option to gcc .... look at LFS, i believe it compiles things statically the first time, so it should help to learn how
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|