Linux - NewbieThis 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
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Here's the background. I have a full install of Slackware 10 on one partition, and am using it to build a Linux From Scratch system on another partition. I'm using the how-to from the Linux Documentation Project.
I'm trying to compile bash, and am having trouble getting the configure script to run. Here's what I get when I try to run configure:
/mnt/lfs/usr/src/bash-3.0$ ./configure
-bash: ./configure: /bin/sh: bad interpreter: permission denied
Here's why I'm so befuddled:
* configure is flagged as an executable
* the script starts with #!/bin/sh
* /bin/sh is a symlink to /bin/bash
* all the permissions are correct for sh, bash and configure
I've written my own little test scripts and run them from the same directory without any problem. I can get configure to run by using 'source' or '.' but get other errors, which I will tackle later.
Why do some scripts seem to insist that I use 'source' or '.', and others run just fine?
Last edited by Pestossimo; 07-19-2005 at 03:16 PM.
checking build system type...
i686-pc-linux-gnu
checking host system type...
i686-pc-linux-gnu
checking for emacs...
emacs
checking where .elc files should go...
${datadir}/emacs/site-lisp
Beginning configuration for bash-3.0-release for i686-pc-linux-gnu
checking for gcc...
gcc -s
checking for C compiler default output...
a.out
checking whether the C compiler works...
bash: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
Script done on Tue 19 Jul 2005 05:12:07 PM UTC
At this point, because I am using 'source' it logs me out when the script exits
I figured it out. The problem was that the script was sitting on another partition that I had mounted.
The how-to that I've been following said that I should compile everything as an unprivileged user. To do this I set the user option for that partition in /etc/fstab so I wouldn't have to su root to mount that partition. What I didn't realize was that the user option also sets the noexec option. So, even though the permissions for each file and directory were correct, I couldn't execute anything on that partition, be it a script or a compiled program.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.