No such file or directory mac os ��������

Question: Q: Mac OS X claims «no such file or directory» for a directory that’s clearly there. Why?

/Library | grep Saved

Saved Application State

/Library/Saved Application State/»

/Library/Saved Application State/: No such file or directory

MacBook Pro, Mac OS X (10.7)

Posted on Aug 14, 2011 2:08 PM

Posted on Aug 14, 2011 2:15 PM

Helpful answers

This format works:

/Library/»Saved Application State»/

Aug 14, 2011 2:14 PM

/Library | grep Saved

Saved Application State

/Library/Saved Application State/»

/Library/Saved Application State/: No such file or directory

You told the shell not to expand the tilde by putting everything in quotes. This is not Windows.

/Library/Saved\ Application\ State

Aug 14, 2011 2:15 PM

There’s more to the conversation

Loading page content

Page content loaded

Very odd. Can you navigate to it in the Finder?

You get the same response when navigating to

Aug 14, 2011 2:15 PM

This format works:

/Library/»Saved Application State»/

Aug 14, 2011 2:14 PM

/Library | grep Saved

Saved Application State

/Library/Saved Application State/»

/Library/Saved Application State/: No such file or directory

You told the shell not to expand the tilde by putting everything in quotes. This is not Windows.

/Library/Saved\ Application\ State

Aug 14, 2011 2:15 PM

Aug 14, 2011 2:15 PM

» is not being expanded by the shell.

try ls «$HOME/Library/Saved Application State/» or ls

/Library/Saved\ Application\ State/

Aug 14, 2011 2:18 PM

Thanks, everyone. Is there a quick way to list all these $ environment variables and see what points where? I know about $PATH and $HOME, but are there any others, what do they do, and can I list them all?

Aug 14, 2011 2:33 PM

One way in Terminal is to enter: env

Aug 14, 2011 3:31 PM

Question: Q: Mac OS X claims «no such file or directory» for a directory that’s clearly there. Why? More Less

Источник

Question: Q: «No such file or directory» errors on Time Machine backup volume

I remotely mounted the Time Machine backup volume onto another Mac and was looking around it in a Terminal window and discovered what appeared to be a funny problem. If I «cd» into some folders (but not all) and do a «ls -la» command, I get a lot of «No such file or directory» errors for all the subfolders, but all the files look fine. Yet if I go log onto the Mac that has the backup volume mounted as a local volume, these errors never appear for the exact same location. Even more weird is that if I do «ls -a» everything appears normal on both systems (no error messages anyway).

It appears to be the case that the folders that have the problem are folders that Time Machine has created as «hard links» to other folders which is something that Time Machine does and is only available as of Mac OS X 10.5 and is the secret behind how it avoids using up disk space for files that are the same in the different backups.

Читайте также:  Php soap ��������� linux

I moved the Time Machine disk to the second Mac and mounted the volume locally onto it (the second Mac that was showing the problems), so that now the volume is local to it instead of a remote mounted volume via AFP and the problem goes away, and if I do a remote mount on the first Mac of the Time Machine volume the problem appears on the first Mac system that was OK — so basically by switching the volume the problem switches also on who shows the «no such file or directory» errors.

Because of the way the problem occurs, ie only when the volume is remote mounted, it would appear to be an issue with AFP mounted volumes that contain these «hard links» to folders.

There is utility program written by Amit Singh, the fella who wrote the «Mac OS X Internals» book, called hfsdebug (you can get it from his website if you want — just do a web search for «Mac OS X Internals hfsdebug» if you want to find it ). If you use it to get a little bit more info on what’s going on, it shows a lot of details about one of the problematic folders. Here is what things look like on the first Mac (mac1) with the Time Machine locally mounted:

So you can see from the first few lines of the «ls -a» command, it shows some file/folders but you can’t tell which yet. The next «ls -la» command shows which names are files and folders — that there are some folders (like ACPI) and some files (like A.txt and A9.txt) and all looks normal. And the «hfsdebug» info shows some details of what is really happening in the «Documents» folder, but more about that in a bit.

And here are what a «ls -a» and «ls -al» look like for the same locations on the second Mac (mac2) where the Time Machine volume is remote mounted:

If you look very close a hint as to what is going on is obvious — the inode for the Documents folder is 152 on the local mounted case (the first set of code above for mac1), and it’s 728505 in the remote mounted case for mac2. So it appears that these «hard links» to folders have an extra level of folder that is hidden from you and that AFP fails to take into account, and that is what the «hfsdebug» shows even better as you can clearly see the REAL location of the Documents folder is in something called «/.HFS+ Private Directory Data%000d/dir_135» that is not even visible to the shell. And if you look closely in the remote mac2 case, when I did the «cd Documents» I don’t go into the inode 135, but into the inode 728505 (look close at the «.» entry for the «ls -la» commands on both mac1 and mac2) which is the REAL problem, but have no idea how to get AFP to follow the extra level of indirection.

Anyone have any ideas how to fix this so that «ls -l» commands don’t generate these «no such file or folder» messages?

I am guessing that the issue is really something to do with AFP (Apple File Protocol) mounted remote volumes. The TimeMachine example is something that I used as an example that anyone could verify the problem. The real problem for me has nothing to do with Time Machine, but has to do with some hard links to folders that I created on another file system totally separate from the Time Machine volume. They exhibit the same problem as these Time Machine created folders, so am pretty sure the problem has nothing to do with how I created hard links to folders which is not doable normally without writing a super simple little 10 line program using the link() system call — do a «man 2 link» if you are curious how it works.

Читайте также:  Oracle mysql для windows

I’m well aware of the issues and the conditions when they can and can’t be used and the potential hazards. I have an issue in which they are the best way to solve a problem. And after the problem was solved, is when I noticed this issue that appears to be a by-product of using them.

Do not try these hard links to folders on your own without knowing what they’re for and how to use them and not use them. They can cause real problems if not used correctly. So if you decide to try them out and you loose some files or your entire drive, don’t say I didn’t warn you first.

Источник

[catalina] after workaround for «idevice_id» run returns ProcessException: ProcessException: No such file or directory #44406

Comments

cfchris commented Nov 8, 2019

Mac updated to Catalina. Ended up with a bunch of permission errors with «idevice_id» etc. Think I got those fixed. But, now I just can’t flutter run from terminal or VS Code.

command

exception

ProcessException: ProcessException: No such file or directory
Command: /usr/local/bin/pod install —verbose

flutter doctor

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

iapicca commented Nov 8, 2019 •

Hi @cfchris
did you follow this workaround to fix the idevice_id issue?
Is it the whole log?
thank you

truonghoangduy commented Nov 8, 2019 •

If you has an opened dialog saying somethings about security.

I did a video how to fix it it on YouTube here the link https://youtu.be/L98Y0UT8wuQ

cfchris commented Nov 8, 2019

Hi @cfchris
did you follow this workaround to fix the idevice_id issue?
Is it the whole log?
thank you

I have followed the workaround. And that is the whole log. I just repeated the steps of the workaround and then did flutter run again. Here is what I get in the terminal (which points to a log record like the on I submitted).

cfchris commented Nov 8, 2019

I am going to attempt to delete flutter, and re-install. If that doesn’t fix it, I will attempt to delete and re-clone our repository (for the app).

cfchris commented Nov 8, 2019 •

OK. After re-installing flutter (rm -rf && unzip), and running flutter doctor , I got the security prompts again. So, I cancelled and ran the attribute update fix. Then, I ran flutter doctor and got a more helpful error.

So, then I ran sudo gem install cocoapods . That went fine. So, I tried flutter run again. That failed. But, I just needed to run flutter pub get .

And now finally, I can run the app again. Hope this info helps someone else that get’s stuck.

Источник

./configure: No such file or directory

Здравствуйте! Я чайник, первый раз пытаюсь поставить расширение для php 5.2.5 на Mac OS X 10.5, стоит Apache 2.2.8. При наборе в терминале ./configure выдает:

-bash: ./configure: No such file or directory

Я так понимаю, эта директива к апачу относится, может быть, из какой-нибудь папки надо запускать? Подскажите, пожалуйста, как ее использовать? Или где про эту ./configure можно почитать?

15 ответов

configure — это конфигурационный bash скрипт, создаваемый обычно autoconf, подготавливающий сборку из исходников.

Пишет он, что нет заданного в нем каталога или файла. Обычно он еще пишет имя этого файла/каталога, но так как тут пусто возможно у вас не задан какой то каталог в этом скрипте.

Не ставил ни когда расширения для php, они всегда собираются из исходников?

Здравствуйте! Я чайник, первый раз пытаюсь поставить расширение для php 5.2.5 на Mac OS X 10.5, стоит Apache 2.2.8. При наборе в терминале ./configure выдает:

Читайте также:  Linux mint посмотреть оперативную память

-bash: ./configure: No such file or directory

Я так понимаю, эта директива к апачу относится, может быть, из какой-нибудь папки надо запускать? Подскажите, пожалуйста, как ее использовать? Или где про эту ./configure можно почитать?

хм. с учетом вышенаписанного — команда pwd что выдает? если сделать ls — среди выведенных файлов есть файл с таким именем?

БРЕД.
Пишет он что не смог найти такой файл (configure) в текущем каталоге.

Да, похоже что так., если выводиться только это строка

так таки да 🙂
Это ж вывод баша а не самого скрипта конфигурации.
Автор скорей всего то ли не знал, то ли забыл о том что ./configure — трактуется как — «запустить команду configure из текущего каталога«. Т.е. документацию он прочел, где было написано о том, что выполнить команду надо так — а о том что «после распаковки перейдите в директорию, куда вы распаковали» то ли не прочел, то ли написано не было.

В директорию, куда распаковался арихив, я перешла. Команда pwd выдает следующее:

/users/imac/downloads/uploadprogress-1.0.1
-это как раз та самая директория.

НО! до этого, при запуске phpize выдал вот что:

iMac:apache2 imac$ cd /users/imac/downloads/uploadprogress-1.0.1
iMac:uploadprogress-1.0.1 imac$ phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

Пытаюсь установить uploadprogress extension. у меня переменной $PHP_AUTOCONF нет. Подскажите, что это за переменная и откуда ее взять?

Источник

macOS Catalina bad interpreter: No such file or directory #15460

Comments

duanhjlt commented Oct 9, 2019 •

I installed Catalina, but i got error when i run fastlane.

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

fastlane-bot commented Oct 9, 2019

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

jcharr1 commented Oct 9, 2019

I had this issue after upgrading to Catalina with several gems. What I had to do is uninstall all my user gems, delete the contents of my user gems directory, and then reinstall the gems. The key was that it wasn’t enough to just uninstall them through gem. I had to manually delete the directory contents too.

T-Jedsada commented Oct 9, 2019 •

alindaj6 commented Oct 9, 2019

@jcharr1 can you tell me what are you doing in detail to make the fastlane working again?
i am really stuck now

jcharr1 commented Oct 9, 2019 •

@alindaj6 how did you install fastlane? Directly with gem or with brew ?

Basically, what you need to do is go into the folder where your gems are installed (GEM_HOME), delete the contents of that folder, and then reinstall fastlane and any other gems you need. That should point the gems to the correct version of Ruby that was updated in Catalina.

jcharr1 commented Oct 9, 2019 •

For example, I have my GEM_HOME setup to be in my user folder (

/.gem) so I can install gems without using sudo . So in my case, what I did was:

  1. run gem uninstall -aIx . This should uninstall all your installed gems and their binaries. Though this doesn’t seem to completely get rid of them and it didn’t fix the error for me after reinstalling.
  2. So next I went into my gem install directory and deleted the contents of it. For me this is

Источник

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