Linux no such file or directory but directory exists

Arch Linux

You are not logged in.

#1 2012-08-27 13:36:55

[SOLVED] No such file or directory, but file exist

Hello unix experts,

In my mind, I have a strange problem, that i can’t understand.
I try to install «sopcast» on my Arch system. I have put a binary application file named «sp-sc-auth» to the directory /usr/bin/.

Now when I want to start this in the terminal, then I get this error message (in german):

But the file ist there.

Last edited by shibby (2012-08-27 14:59:51)

#2 2012-08-27 14:08:52

Re: [SOLVED] No such file or directory, but file exist

Please post the output of

This error often means you’re trying to run a 64-bit binary on a 32-bit system.

#3 2012-08-27 14:14:59

Re: [SOLVED] No such file or directory, but file exist

Ok. Does it mean, that this application does not work on my 64 bit OS?

#4 2012-08-27 14:17:54

Re: [SOLVED] No such file or directory, but file exist

#5 2012-08-27 14:30:28

Re: [SOLVED] No such file or directory, but file exist

There’s no need to «cd» to that directory because /usr/bin is already in $PATH. Seriously, run:

Читайте также:  Bitcoin miner windows app

I think you just forgot to set the executable bit:

Don’t forget to mark the topic as solved (by editing the first post).

Edit: Oh, it’s a binary. I thought I was a script. The executable bit should already be set then.

Last edited by DSpider (2012-08-27 14:33:56)

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Источник

Debian: No such file or directory — а файл есть

Здравствуйте, уважаемые. Скачал btsync (у меня arm, по ссылке Linux ARM тут), положил в /usr/bin и не могу запустить:

Как так и что с этим делать?

P.S. Тоже самое происходит, если переместить исполняемый файл, например, в домашний каталог.

P.S.S. Debian Jessie, вот такая железка.

chmod +x точно не поможет?

apparmor, selinux, noexec?

noexec на разделе

такое бывает когда исполняемый файл например предназначенный для 32 битной архитектуры пытаются запустить в 64-битной системе

А что покажет file btsync ? Необязательно на самой железке.

apparmor, selinux, chattr — это что? Что посмотреть?

В общем, похоже-таки несовместимость архитектур. Придётся пересобирать из исходников. Источник: http://otvety.google.ru/otvety/thread?tid=1e74bf1617bdb4b6

Try to run the following command

I had the same issue on Cubieboard.

Try to run the following command:

sudo ln -s /lib/arm-linux-gnueabihf/ld-linux.so.3 /lib/ld-linux.so.3

На Debian 7.6.0 (Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux) столкнулся с той же проблемой. Для запуска 32-битного приложения может потребоваться пакет ia32-libs-i386. Дебиан по умолчанию не дает его установить из-за зависимостей. Решается таким образом:

Читайте также:  Build lame on windows

sudo dpkg —add-architecture i386 sudo apt-get update sudo apt-get install ia32-libs-i386 (тянет за собой 60Мб зависимостей)

Источник

Оцените статью