LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2004, 09:05 PM   #1
tutwabee
Member
 
Registered: Jan 2004
Location: California
Distribution: Ubuntu 10.04
Posts: 145

Rep: Reputation: 15
Can't compile in directories not in PATH


I am using Slackware 10 and I can compile programs using ./configure and make when I put a folder in /tmp but I can't do so when I have it in my home directory. I also cannot execute any programs using ./something. The error for ./something is:
-bash: ./something: /usr/bin/perl: bad interpreter: Permission denied
OR
-bash: ./something: /bin/sh: bad interpreter: Permission denied

Any ideas?
 
Old 09-27-2004, 09:17 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Is your home directory a separate partition? If it is, what does the line in /etc/fstab look like? If it has noexec in the options, that's probably the problem. You can get rid of the noexec option.
 
Old 09-27-2004, 09:20 PM   #3
tutwabee
Member
 
Registered: Jan 2004
Location: California
Distribution: Ubuntu 10.04
Posts: 145

Original Poster
Rep: Reputation: 15
You are right about it being a seperate partition but it doesn't have noexec anywhere in the line. Here is the line in fstab:
Quote:
/dev/hda5 /home ext3 user,defaults 1 2
 
Old 09-27-2004, 09:22 PM   #4
tutwabee
Member
 
Registered: Jan 2004
Location: California
Distribution: Ubuntu 10.04
Posts: 145

Original Poster
Rep: Reputation: 15
Ahh.. I just realized the line in mtab has noexec. I just took it out and now I'm going to unmount and hope it works. Thanks quatsch
 
Old 09-27-2004, 09:25 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
If it is in mtab, then you'll get the problem back when you reboot. You should change the line in /etc/fstab a bit. It should work if you replace the default with whatever is listed in mtab minux noexec.
 
Old 09-27-2004, 09:37 PM   #6
tutwabee
Member
 
Registered: Jan 2004
Location: California
Distribution: Ubuntu 10.04
Posts: 145

Original Poster
Rep: Reputation: 15
I added exec to the fstab line and it works fine now. It now reads:
Quote:
/dev/hda5 /home ext3 user,defaults,exec 1 2
 
  


Reply



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
script to check $PATH directories exist Frustin Linux - Software 3 09-21-2004 12:20 PM
Adding directories to the PATH statement kaplan71 Slackware 2 09-02-2004 03:57 PM
Lib path and compile toolshed Linux - Software 4 08-27-2004 12:10 PM
problems linking programs directories in my path jimdaworm Linux - Newbie 9 04-14-2004 03:27 PM
RedHat 9.0 and $PATH - where are the directories? -G- Linux - General 6 11-18-2003 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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