Linux - SoftwareThis 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
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i downloaded some program source (cvscedega) from windows and then copied to my root folder.
when i try and execute the install scripts, it tells:
/bin/bash^M unknown interpreter
i guess this should be caused by having saved the files from windows, using crlf as carriage return
i kind of remember there should be some command to do this windows-to-linux conversion for ascii files, can someone tell me please?
dos2unix, but that's probably not your problem. Check the execution parameters:
ls -l install-script
If it doesn't have an exec bit set (no x in the xwrxwrxwr area) then you need to do something like:
chmod a+x install-script
OR
chmod 750 install-script
I don't have the answer, but I would not think that the error message ("/bin/bash^M unknown interpreter") would be caused by the execute permission being off.
thanks for the answers, i'll try and see
this is not very comfortable though cause i don't know how many scripts there are, if too many i better just redownload anything from linux...
i was trying with another thing:
i copied the cvs folder to my shared fat partition, then i mounted it with:
mount -t vfat -o conv=a /dev/sda3 /shared_fat
in the mount man page, it says that conv=a for (v)fat enables the crlf<->lf conversion at driver level for ascii files. then i cp -r the folder to my home but they're all still dos-encoded.
i even tried conv=t which should translate every file, but neither did anything, strangely enough...
if they had .sh extension it'd be easy
instead there're a lot of scripts without any extension, that's why i tried with the vfat auto conversion, if it worked like it's supposed to do
well i'll try and convert every file recursively, they should be all ascii files so no harm
"for i in `ls *`" ???
If it's going to hit things I don't want hit I just create a test directory with the things that need fixing, and splat that. Then move them back.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.