Linux execute command no such file or directory

Содержание
  1. It’s a blog. Just a blog!
  2. Устраняем ошибку «unable to execute ‘gcc’: No such file or directory»
  3. chroot: can’t execute ‘/bin/su’: No such file or directory #516
  4. Comments
  5. rickglyn commented May 25, 2016
  6. Use jupyter command, It show error: No such file or directory #84
  7. Comments
  8. Anne623 commented Aug 17, 2016
  9. takluyver commented Aug 17, 2016
  10. Anne623 commented Aug 18, 2016
  11. takluyver commented Aug 18, 2016
  12. Anne623 commented Aug 22, 2016
  13. takluyver commented Aug 22, 2016
  14. Anne623 commented Aug 22, 2016
  15. Anne623 commented Aug 22, 2016
  16. takluyver commented Aug 22, 2016
  17. Anne623 commented Aug 22, 2016
  18. takluyver commented Aug 22, 2016
  19. slonak79 commented May 24, 2017
  20. takluyver commented May 24, 2017
  21. darobin commented Jun 22, 2017
  22. Milannju commented Sep 12, 2017
  23. th-walker commented Sep 14, 2017
  24. kishorekonjeti commented Nov 9, 2017
  25. iYiYaHa commented Nov 28, 2017
  26. davidwjx commented Jan 25, 2018
  27. awelkie commented Jan 25, 2018
  28. tgamauf commented Feb 8, 2018
  29. ynsrachana commented Feb 27, 2018
  30. Pradeep119 commented Apr 30, 2018 •
  31. takluyver commented Apr 30, 2018
  32. akashshah26595 commented Jun 17, 2018
  33. seva100 commented Jun 26, 2018
  34. przbatte commented Jul 21, 2018
  35. iamtodor commented Jul 23, 2018
  36. hemangjoshi37a commented Aug 11, 2018
  37. For Python 2
  38. For Python 3
  39. mehraanuj commented Sep 6, 2018
  40. aniketjha1729 commented Sep 8, 2018 •
  41. matteocollina commented Oct 21, 2018
  42. BigZSmallY commented Feb 26, 2019 •
  43. Adnan0208 commented Aug 11, 2019
  44. BasharAlmomaine commented Apr 13, 2021
  45. kevin-bates commented Apr 13, 2021
  46. BasharAlmomaine commented Apr 18, 2021
  47. BasharAlmomaine commented Apr 18, 2021
  48. ivanov commented May 7, 2021

It’s a blog. Just a blog!

Устраняем ошибку «unable to execute ‘gcc’: No such file or directory»

Данная заметка — одна из цикла мини заметок про возникающие проблемы при работе с Python, pip и другими приложениями, используемые при разработке на языке Python. Описываемые проблемы встречаются в повседней работе системных администраторов, программистов,DevOps’ов. Непосредственно данные ошибки возникали при разработке программного комплекса Barsemon. Данный программный комплекс должен будет использоваться для мониторинга серверов, сетевого оборудования, окончания доменов и SSL сертификатов, и других критически важных объектов, приложений, оборудования. На данный момент проект находится в стадии разработки.

И так, при установке зависимостей Python могут возникать ошибки компилирования пакета(ов). Ниже представлен вывод программы инсталятора и возникающая при установке пакета ошибка.

Стоит обратить внимание, что установка пакетов, именно в этом примере, осуществляется согласно списку пакетов из файла requirements.txt. Ошибка(и) может/могут возникать как при групповой установке пакетов, так и при установке одиночного пакета.

(!)Все установки производятся на dev сервере, работающего на базе Centos 7.x и Python 3.4

Вывод программы инсталятора:

Как мы видим, установка пакетов была прервана из-за ошибки компиляции.

Ошибка говорит о необходимости установки в операционную систему пакета GCC компилятора.

Для установки пакета GCC компилятора необходимо выполнить команду:

После установки GCC пакета, необходимо заново запустить установку пакетов Python.

Установка пакетов должна пройти без каких-либо ошибок.

Источник

chroot: can’t execute ‘/bin/su’: No such file or directory #516

Comments

rickglyn commented May 25, 2016

Hi all Linux deploy fans,

I’ve had the app running fine with jessie and ssh on 5.1.1 but now updated to 6.0.1 on Note 4 SM-N910F. I’ve reinstalled LD, Busybox, rooted SU ok and selinux permissive but I’ve got this / these problems still. Just trying to get ssh working.

Читайте также:  Автоматическая загрузка пользователя windows

Would appreciate it if any of you guys could point to what’s going wrong.

[13:04:56] + container_configure dns mtab
[13:04:56] + [ 2 -eq 0 ]
[13:04:56] + container_mounted
[13:04:56] + is_mounted /data/data/ru.meefik.linuxdeploy/linux
[13:04:56] + local mount_point=/data/data/ru.meefik.linuxdeploy/linux
[13:04:56] + [ -n /data/data/ru.meefik.linuxdeploy/linux ]
[13:04:56] + grep -q /data/data/ru.meefik.linuxdeploy/linux /proc/mounts
[13:04:56] Configuring the container:
[13:04:56] dns . +
[13:04:56] + return 0
[13:04:56] + [ 0 -ne 0 ]
[13:04:56] + msg Configuring the container:
[13:04:56] + echo Configuring the container:
[13:04:56] + local item
[13:04:56] + configure_part dns
[13:04:56] + msg -n dns .
[13:04:56] + echo -n dns .
[13:04:56] + set -e
[13:04:56] + [ -z ]
[13:04:56] + getprop net.dns1
[13:04:56] + local dns1=208.67.222.222
[13:04:56] + getprop net.dns2
[13:04:56] + local dns2=208.67.220.220
[13:04:56] + local dns_list=208.67.222.222 208.67.220.220
[13:04:56] + [ -z 208.67.222.222 -a -z 208.67.220.220 ]
[13:04:56] + printf
[13:04:56] + local dns
[13:04:56] + echo nameserver 208.67.222.222
[13:04:56] + echo nameserver 208.67.220.220
[13:04:56] + exit 0
[13:04:56] + [ 0 -eq 0done
[13:04:56] mtab . ]
[13:04:56] + msg done
[13:04:56] + echo done
[13:04:56] + return 0
[13:04:56] + configure_part mtab
[13:04:56] + msg -n mtab .
[13:04:56] + echo -n mtab .
[13:04:56] + set -e
[13:04:56] + rm -f /data/data/ru.meefik.linuxdeploy/linux/etc/mtab
[13:04:56] + grep /data/data/ru.meefik.linuxdeploy/linux+ sed s|/data/data/ru.meefik.linuxdeploy/linux/*|/|g
[13:04:56] /proc/mounts
[13:04:56] + exit 0
[13:04:56] done
[13:04:56] Starting services:
[13:04:56] SSH [:22] . + [ 0 -eq 0 ]
[13:04:56] + msg done
[13:04:56] + echo done
[13:04:56] + return 0
[13:04:56] + return 0
[13:04:56] + msg Starting services:
[13:04:56] + echo Starting services:
[13:04:56] + local item
[13:04:56] + container_start ssh
[13:04:56] + [ 1 -eq 0 ]
[13:04:56] + msg -n SSH [:22] .
[13:04:56] + echo -n SSH [:22] .
[13:04:56] + ssh_started
[13:04:56] + local item pidfile pid
[13:04:56] + pidfile=/data/data/ru.meefik.linuxdeploy/linux/var/run/sshd.pid
[13:04:56] + [ -e /data/data/ru.meefik.linuxdeploy/linux/var/run/sshd.pid ]
[13:04:56] + [ -n -a -e /proc/ ]
[13:04:56] + pidfile=/data/data/ru.meefik.linuxdeploy/linux/run/sshd.pid
[13:04:56] + [ -e /data/data/ru.meefik.linuxdeploy/linux/run/sshd.pid ]
[13:04:56] + [ -n -a -e /proc/ ]
[13:04:56] + return 1
[13:04:56] + [ -e /data/data/ru.meefik.linuxdeploy/linux/var/run -a ! -e /data/data/ru.meefik.linuxdeploy/linux/var/run/sshd ]
[13:04:56] + [ -e /data/data/ru.meefik.linuxdeploy/linux/run -a ! -e /data/data/ru.meefik.linuxdeploy/linux/run/sshd ]
[13:04:56] + grep key
[13:04:56] + ls /data/data/ru.meefik.linuxdeploy/linux/etc/ssh/
[13:04:56] ls: /data/data/ru.meefik.linuxdeploy/linux/etc/ssh/: No such file or directory
[13:04:56] + [ -z ]
[13:04:56] + chroot_exec -u root ssh-keygen -A
[13:04:56] + unset TMP TEMP TMPDIR LD_PRELOAD LD_DEBUG
[13:04:56] + [ -u = -u ]
[13:04:56] + local username=root
[13:04:56] + shift 2
[13:04:56] + [ 1 -gt 0 ]
[13:04:56] + chroot /data/data/ru.meefik.linuxdeploy/linux /bin/su — root -c ssh-keygen -A
[13:04:56] chroot: can’t execute ‘/bin/su’: No such file or directory
[13:04:56] + local sshd= which sshd
[13:04:56] + chroot_exec -u root which sshd -p 22
[13:04:56] + unset TMP TEMP TMPDIR LD_PRELOAD LD_DEBUG
[13:04:56] + [ -u = -u ]
[13:04:56] + local username=root
[13:04:56] + shift 2
[13:04:56] + [ 1 -gt 0 ]
[13:04:56] + chroot /data/data/ru.meefik.linuxdeploy/linux /bin/su — root -c which sshd -p 22
[13:04:56] fail
[13:04:56] chroot: can’t execute ‘/bin/su’: No such file or directory
[13:04:56] + [ 127 -eq 0 ]
[13:04:56] + msg fail
[13:04:56] + echo fail
[13:04:56] + return 0
[13:04:56] + [ 0 -eq 0 ]
[13:04:56] + [ -z ssh ]
[13:04:56] + return 0
[13:04:56] + printf $’

The text was updated successfully, but these errors were encountered:

Источник

Use jupyter command, It show error: No such file or directory #84

Comments

Anne623 commented Aug 17, 2016

Hi, All,
I download source code from git repo. I checkout tag 4.1.0 , and I install jupyter_core from source code to replace jupyter_core which installed by anaconda. while ,when I finished install, I try use jupyter command, it show error:

Install jupyter_core from source code:

Does some config i miss?

The text was updated successfully, but these errors were encountered:

takluyver commented Aug 17, 2016

Can you check that file does actually exist and is executable?

Anne623 commented Aug 18, 2016

@takluyver Thank you for your reply, I check that file is exist and is executable.

Читайте также:  Linux содержимое всех файлов каталога

takluyver commented Aug 18, 2016

Weird. What does the file contain? Does the first line start with #! ?

Anne623 commented Aug 22, 2016

yes. the file content is

takluyver commented Aug 22, 2016

And can you run /usr/bin/env python ? I’m clutching at straws here, it all looks completely normal.

Anne623 commented Aug 22, 2016

yes, the pic is:

Anne623 commented Aug 22, 2016

@takluyver Yes , I open a new shell terminal. but it’s the same error.

takluyver commented Aug 22, 2016

Weird. What if you try:

Anne623 commented Aug 22, 2016

If I try «/usr/bin/env python /usr/local/Python/bin/jupyter` it works fine.

takluyver commented Aug 22, 2016

Weird. Sorry, I’m all out of ideas for now.

slonak79 commented May 24, 2017

I’m having the same issue.

takluyver commented May 24, 2017

Does jupyter-notebook work instead of jupyter notebook ?

darobin commented Jun 22, 2017

Getting the same thing, right from a fresh Anaconda install. Running jupyter-notebook works, as do jupyter —help , jupyter —version , jupyter —paths …

Milannju commented Sep 12, 2017

Try this commend: python -m IPython notebook

th-walker commented Sep 14, 2017

@Milannju I had the same issue python -m IPython notebook worked for me — thanks.

kishorekonjeti commented Nov 9, 2017

I had this issue. Finally got the solution.ie simply execute the following command..
sudo apt install jupyter-notebook
After finishing installing then run the command
jupyter-notebook

iYiYaHa commented Nov 28, 2017

@ksr11 Thanks! I had the same problem, and your solution worked for me.

davidwjx commented Jan 25, 2018

@Milannju thaaaanks.
python -m IPython notebook did work well for me in High Sierra 10.13.3.

awelkie commented Jan 25, 2018

On Fedora 27 I had to install python3-notebook

tgamauf commented Feb 8, 2018

Had the same issue on Ubuntu 17.10. python3 -m IPython notebook works, sudo apt install jupyter-notebook didn’t change a thing for me.

ynsrachana commented Feb 27, 2018

my jupyter path is
jupyter —paths
config:
/root/.jupyter
/usr/etc/jupyter
/usr/local/etc/jupyter
/etc/jupyter
data:
/root/.local/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter
runtime:
/root/.local/share/jupyter/runtime
i can c d version of jupyter. but am getting d error as
python_lib_contents = listdir(«<0>/python/lib».format(self.spark_home))
FileNotFoundError: [Errno 2] No such file or directory: ‘/python/lib’

and checked the path /usr/local/python/bin but i dont have the python folder. /usr/local/bin itself.

Pradeep119 commented Apr 30, 2018 •

in linux,
first install jupyter via sudo apt install jupyter-notebook
and use jupyter-notebook to run it

takluyver commented Apr 30, 2018

We don’t recommend installing through apt, because that will almost always be out of date. Even in Ubuntu 18.04, which was released a couple of days ago, it’s not up to date.

akashshah26595 commented Jun 17, 2018

I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04) :

sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter

ipython seemed to be the problem, hence removing it fixed the issue.

I’m now able to run jupyter notebook

seva100 commented Jun 26, 2018

@slonak79, I also encountered this problem eventually; for me it was easily solved by doing
mkdir

/.jupyter
before executing other jupyter-related commands.

Читайте также:  Уильям станек windows powershell

przbatte commented Jul 21, 2018

Please try: pip3 install jupyter —force or pip install jupyter —force

iamtodor commented Jul 23, 2018

python -m IPython notebook — worked for me. however I got the following output while executing jupyter-notebook or jupyter notebook :

hemangjoshi37a commented Aug 11, 2018

It seems to me as though the installation has messed up somehow. Try running:

For Python 2

pip install —upgrade —force-reinstall —no-cache-dir jupyter

For Python 3

pip3 install —upgrade —force-reinstall —no-cache-dir jupyter
This should reinstall everything from PyPi. This should solve the problem as I think running pip install «ipython[notebook]» messed things up.

mehraanuj commented Sep 6, 2018

I was getting this issue. I did following steps-

  1. Reset your configuration file.
  2. try command jupyter notebook —allow-root (Remember to give space after notebook)

aniketjha1729 commented Sep 8, 2018 •

open ur terminal type: # -r
after that type jupyter notebook
This will fix ur problem

matteocollina commented Oct 21, 2018

@takluyver it works for Ubuntu 18.04

BigZSmallY commented Feb 26, 2019 •

IPython
python -m IPython notebook
It works for me too.

Adnan0208 commented Aug 11, 2019

Try this commend: python -m IPython notebook

Ahh. this command worked for me. I was searched a lot on this and finally to uninstall everything and want to do it again with installation of Anaconda. But saved! Thanks a lot.

BasharAlmomaine commented Apr 13, 2021

Where to use it?

kevin-bates commented Apr 13, 2021

You would use this from a terminal window — although I don’t think that answers your question. Please note that use of IPython to run a notebook is a bit outdated and the more current command would be python -m jupyter notebook .

Are you asking because you’re getting No such file issues when running jupyter ?
Could you provide information relative to your issue?
Could you provide the output of jupyter troubleshoot ?

BasharAlmomaine commented Apr 18, 2021

Greetings,
Thank you for your concern.
I tried to write this code» python -m jupyter notebook » in the terminal but with no solution, I still have the same results.
yes, I am asking about the no file issue when running in jupytur.
Please see the 2 attachments below regarding the issue whenever I run the code.


BasharAlmomaine commented Apr 18, 2021

it’s ok. thanks for the help.
I figured it out and fixed it.
I just opened the excel file and saved it as CSV( Comma delimited).

ivanov commented May 7, 2021

Hey there, I’m going through old issues and it seems to me that it makes sense to close this one. Other than the unrelated simple FileNotFound error posted within the last month, this issue did not have any activity for the past 2 years. It looks like most folks who ran into this were using a mix of packages that shipped with their distribution or conda and pip. Hopefully anyone who runs into this can try some of the workarounds proposed here.

Thanks everyone and happy hacking!

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

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