LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 05-29-2005, 12:51 PM   #1
J_Szucs
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: Reputation: 58
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.
 
Old 05-29-2005, 07:40 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
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
 
Old 05-30-2005, 01:36 AM   #3
J_Szucs
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: Reputation: 58
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?
 
Old 05-30-2005, 04:44 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
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
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CJK support in ash shell uiqbal Linux - General 0 10-18-2005 08:24 AM
SATA on Adaptec ASH-1205sa KJ Jantzen Linux - Hardware 1 06-13-2005 01:37 PM
Sarge - only ASH in shell no BASH jriis Debian 1 12-25-2003 03:25 PM
ash script (please) sourceman Linux - General 1 04-18-2002 09:38 AM
Can ash recall previous commands? Scerj Linux - General 0 06-06-2001 02:18 PM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration