No Such File Or Directory Linux Error
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about
No Such File Or Directory Linux Shell Script
Stack Overflow the company Business Learn more about hiring developers or posting ads with no such file or directory linux bash us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu
Unix No Such File Or Directory But File Exists
users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top No linux no such file or directory but directory exists such file or directory? But the file exists! up vote 87 down vote favorite 28 I've downloaded a game (Shank) but the bin file doesn't run. The error that is shown when I try to launch the executable is: bash: ./shank-linux-120720110-1-bin: No such file or directory 64-bit files games executable share|improve this question edited May 8 '12 at 12:56 asked May 7 '12 at 19:06 Francesco 5961512 2 Maybe "chmod u+x no such file or directory bash script ./shank*bin" first? –agent86 May 7 '12 at 19:35 also shouldn't that be '.bin' rather than '-bin', maybe it's just a typo –Anake May 7 '12 at 20:25 Thank you for your reply. I've done the command you said Agent86 but I have the same result. I've downloaded also the .deb file but there is a problem too. I don't know what problem has this game. –Francesco May 7 '12 at 21:29 Please confirm whether you're running a 64-bit installation (that's the most common case for this problem). –Gilles May 7 '12 at 21:49 Yes I confirm that I'm using a 64-bit architecture on my laptop. –Francesco May 7 '12 at 22:31 add a comment| 6 Answers 6 active oldest votes up vote 131 down vote You're probably trying to run a 32-bit binary on a 64-bit system that doesn't have 32-bit support installed. There are three cases where you can get the message “No such file or directory”: The file doesn't exist. I presume you've checked that the file does exist (perhaps because the shell completes it). There is a file by that name, but it's a dangling symbolic link. The file exists, and you can even read it (for example, the command file
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
No Such File Or Directory Ubuntu
the workings and policies of this site About Us Learn more about no such file or directory in linux terminal Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux
No Such File Or Directory Python
Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join http://askubuntu.com/questions/133389/no-such-file-or-directory-but-the-file-exists them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Shell script error (: not found [No such file or directory]) [duplicate] up vote 4 down vote favorite 1 This question already has an answer here: Shell script works when http://unix.stackexchange.com/questions/224187/shell-script-error-not-found-no-such-file-or-directory saved with nano but not when saved with Notepad++ 2 answers I'm using following script on linux server. And which is giving: : not found [No such file or directory] This is the script: # ------------------------------------------------------------------ # K.Sugunan Host health check # Description # # This script to initiate health check on servers. # It will check for CPU, memory and some connectivity with # up stream and down stream system. # # ------------------------------------------------------------------ # Applying initial variables and loading config parameters DOCROOT=$(pwd)"/" TIME_NOW=$(date +"%Y-%m-%d %H:%M:%S") echo $DOCROOT . $DOCROOT"config/main.sh" . $DOCROOT"config/web.sh" . $DOCROOT"config/telnet.sh" echo $CPU_A The error will be like follows: : not found [No such file or directory] : not found [No such file or directory] /home/sugunan/phobos/ : not found [No such file or directory] : cannot open [No such file or directory]os/ I use following ways to run the script ksh poc.sh sh poc.sh ./poc.sh All of the above giving similar error. Even I include #!/bin/bash still the error exist. I have tried #!/bin/ksh and #!/usr/bin/ksh also. All of that gives the error. What may b
2016inDebian / Ubuntu,Linux,Package Management,RedHat and FriendsI see the following error when I run make command to install specific software:
http://www.cyberciti.biz/faq/linux-error-cursesh-no-such-file-directory/ curses.h: No such file or directory Problem SolutionHow do I fix this error under Red Hat Enterprise Linux (RHEL) or CentOS / Fedora Linux?You http://serverfault.com/questions/592702/no-such-file-or-directory-error-when-trying-to-execute-startup-script-in-debian need to install the curses library which include routines for a terminal-independent method of updating character screens with reasonable optimization. The ncurses (new curses) no such library is a freely distributable replacement for the discontinued 4.4 BSD classic curses library.Fix this error on RHEL / Fedora / CentOS LinuxType the following yum command at a shell prompt as root user:# yum install ncurses-devel ncursesSample output:Loading "downloadonly" plugin Loading "rhnplugin" plugin Loading "security" plugin rhel-x86_64-server-vt-5 100% no such file |=========================| 1.2 kB 00:00 rhel-x86_64-server-5 100% |=========================| 1.2 kB 00:00 Setting up Install Process Parsing package install arguments Package ncurses - 5.5-24.20060715.x86_64 is already installed. Package ncurses - 5.5-24.20060715.i386 is already installed. Resolving Dependencies --> Running transaction check ---> Package ncurses-devel.x86_64 0:5.5-24.20060715 set to be updated ---> Package ncurses-devel.i386 0:5.5-24.20060715 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: ncurses-devel x86_64 5.5-24.20060715 rhel-x86_64-server-5 1.7 M ncurses-devel i386 5.5-24.20060715 rhel-x86_64-server-5 1.6 M Transaction Summary ============================================================================= Install 2 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 3.3 M Is this ok [y/N]: y Downloading Packages: (1/2): ncurses-devel-5.5- 100% |=========================| 1.6 MB 00:01 (2/2): ncurses-devel-5.5- 100% |=========================| 1.7 MB 00:01 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: ncurses-devel ######################### [1/2] Installing: ncurses-devel ######################### [2/2] Installed: ncurses-devel.x86_64 0:5.5-24.20060715 ncurses-devel.i386 0:5.5-24.20060715 Complete!Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top No such file or directory error when trying to execute startup script in Debian up vote 7 down vote favorite 3 Very new to Debian (Raspbian), and I'm struggling on this one for a few days. I have a startup script that I want to execute at startup. I have executed the following commands, to make the script executable and to add it with the default parameters to the startup sequence. sudo chmod 755 /etc/init.d/testsam sudo update-rc.d testsam defaults When trying to test the script, I execute the following: sudo /etc/init.d/testsam start But when doing so, I get an error: unable to execute /etc/init.d/testsam: No such file or directory. I minimized the script to the very basic, but still don't have a clue of the actual reason. I hope someone can point me out to the right solution? This is the script at current. #! /bin/bash # /etc/init.d/testsam case "$1" in start) #echo "starting script" ;; stop) #echo "stopping script" ;; *) #echo "Usage: /etc/init.d/testsam {start|stop}" exit 1 ;; esac exit 0 Thanks for any help debian bash startup-scripts share|improve this question asked May 2 '14 at 12:24 Sam Vanhoutte 138115 add a comment| 1 Answer 1 active oldest votes up vote 17 down vote accepted You probably have a carriage return