Question: I get this error message:
Export: Bad interpreter: Any such File or directory
When I execute this script:
#! / Bin / bash MONO_PREFIX = / opt / mono-2.6 Export: $ GNOME_PREFIX / Exports: ACLOCAL_PATH = $ MONO_PREFIX / share / export / export / DYLD_LIBRARY_PATH = $ MONO_PREFIX / lib: $ DYLD_LIBRARY_PATH export LD_LIBRARY_PATH = $ MONO_PREFIX / lib: $ LD_LIBRARY_PATH Exports C_INCLUDE_PATH = $ MONO_PREFIX / aclocal export PKG_CONFIG_PATH = $ MONO_PREFIX / lib / Pkgconfig: $ GNOME_PREFIX / lib / pkgconfig PATH = $ MONO_PREFIX / bin: $ PATH PS1 = "[mono -6] \ w @"
but Bash path is correct:
asshat @ IS1300: ~ / sources / mono-2.6 # which bash / bin / bash asshat @ IS1300: ~ # cd source / asshat @ IS1300: ~ / source #CD Mono-2.6.6 / Asshat @ IS1300: ~ / sources / mono-2.6 # ./mono-2.6- Environmental Export: Bad Interprime Etr: No such file or directory @ IS1300 @ asshat: ~ / sources / mono-2.6 # LS download Mono -2.4 mono-2.4-mono -2.6 mono-2.6-environmental Asot @ IS 1300: ~ / src / mono -2.6 # CP mono-2.6-environment mono-2.6.6-environment SSH ASS 0000: ~ / source /mono-2.6# ./mono-2.6-environment.sh export: bad interpreter: No such file or directory @ IS 1300: ~ / src / mono -2.6 # LS download Mono -2.4 eco mono-2.6-environmental mono 2.4 mono mono -2.6 -2.6- Antrporeshnkaisacsaisas 1300: ~ / src / mono -2.6 # Bash mono-2k6- environment Anshait @ IS 1300: ~ / source / mono -2.6 # < / Code>
What am I doing wrong? Or is this a lucid links bug?
I chmod + x
the first line: #! / Bin / bash
Linux tells that to find where the interpreter
at the end of each line, it is highly likely that you have created with a Windows editor file In a & lt; Cr & gt; & Lt; Lf>
It is standard under dos / window However, under Unix / Linux, the standard is only for & lt; Lf>
is inserted at the end of the line.
Linux is now looking for a file named / bin / bash & lt; Cr & gt;
to interpret the file, where & lt; Cr & gt;
is a carrier return character, which is a valid file character under Linux, such a file does not exist.
Solution: Edit the file with an editor on Linux and add additional and lt; Cr & gt; Get rid of
.
Comments
Post a Comment