Zhigang Wang
  • Home
  • Blog
  • Wiki

bad interpreter: Permission denied

Last modified on 2009-12-01

I get the following error message when I compile a software:

./configure: /bin/sh: bad interpreter: Permission denied

After some investigation, I get the answer. That because I'm running the command on a filesystem which does not allow the execution of code.

For security reason, most distributions make movable usb disk partitions mounted with "noexec,nosuid,nodev". Eg:

/dev/sdb5 on /media/data type ext3 (rw,noexec,nosuid,nodev)

Solutions

  1. Re-mount the partition with proper options:
    # mount -o remount,rw /media/data
    
  2. Move to another partition that has exec rights to do the compilation.
 

Categories

  • All contents
  • English contents
  • Chinese contents

Feeds

  • AtomAll contents
  • AtomEnglish contents
  • AtomChinese contents

Tags

  • gtd
  • syslog
  • twiki
  • virtualizaion
  • wiki
  • xen

Copyright © 2012 Zhigang Wang. Some right reserved.

The views expressed on this web site are my own and do not necessarily reflect the views of Oracle.