I'm trying to install HomeBrew on my iMac running OSX 10.11.1 El Capitan.
On the HomeBrew home page there is a short script in Ruby to paste into Terminal. When I did this, I got an error message as pasted below:
chown: King_Bud: illegal user name Failed during: /usr/bin/sudo
/usr/sbin/chown King_Bud /usr/local/. /usr/local/bin /usr/local/lib
/usr/local/share /usr/local/share/man /usr/local/share/man/man1
/usr/local/share/doc
Based on the above message, I ran the first aid program in disk utilities and no permission errors were identified. But the above error code suggests some type of permission problem.
I see there was a post 2 years ago describing a similar error message but it sounds like this was occurring after HomeBrew was already installed, and pertained to installing new packages rather than the HomeBrew program itself. How to fix homebrew permissions?
Any thoughts about how to resolve the "illegal user name" problem would be appreciated.
I figured out the problem.
the chown error message was being created because my $USER environmental variable in my bash_profile was not matching the name of my logged-in user name as identified in Finder.
When I went into my bash_profile and edited the USER environmental variable so that $USER was the same as my logged-in user name in Finder, then I was able to successfully install HomeBrew using the pasted command from the HomeBrew home page.
Hopefully this posting will be helpful for anyone in the future who gets a similar error message while trying to install HomeBrew.
Related
WSL2 stopped working. When, I do a new installation of linux distro, it throws the following error on click of the launch button:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 The system cannot find the path specified.
Press any key to continue...
the wsl --help command works fine
however wsl -l command and other wsl commands throw the following error
The system cannot find the path specified.
Check if you have any .wslconfig inside your profile in %USERPROFILE% folder and delete it! I finally got it working
FIY: https://github.com/microsoft/WSL/issues/3232#issuecomment-777023885
I was getting the same issue and it was due to my bad attempt at deleting the installed Distro. If yours is the same case, this should be pretty easy to fix, use the wsl --unregister <DISTRO_NAME> which in my case was debian so wsl --unregister debian unregistered the old path for the Debian executable and then I installed Debian again. This worked for my personal case but I thought it might help someone on the internet.
I have followed the website of CGAL. It told me that I could install it by using the command
brew install cgal-qt5.
But I have received the following error message:
Updating Homebrew...
Error: No available formula with the name "cgal-qt"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarity named formulae...
Error: No similarly named formula found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in tabs.
And when I run the example draw_triangulation_2.cpp, it has a fatal error:
'CGAL/Qt/Basic_viewer_qt.h' file not found
I guess this result is generated because of the lack of cgal-qt5, but I cannot fix it. I hope someone can help me. Thanks.
Actually the doc here is wrong. The PR for this was never accepted, and the doc about cgal on brew was published before the cancellation of the PR. On brew, you can install cgal with brew install cgal but you won't have the GUI elements in that package until this PR is integrated.
I am encoutering two kinds of issues while trying to install a package called Boltztrap2.
1) Trying to install Boltztrap2 using 'pip3'. However, when I punch in the command, the process goes smoothly for a while and then spits out an error :
BoltzTraP2/sphere/frontend.cpp:32:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
I did some troubleshooting and found out that it is just a path issue - I confirmed this by typing 'locate Python.h'. However, I don't get how to manually incorporate this change since the 'pip3' command that I use downloads the program and compiles it automatically. I don't seem to have access to change any scripts, or rather I do not know how to, since I'm kind of new to all this.
PS: I do not have sudo access.
2) Trying to install Boltztrap2 by manually compiling the python setup file: This seems to work fine until the system spits out an error saying:
Error:numpy is not installed.
PS: Again, I do not have sudo access.
I would be very glad if someone could help me install this package through either method. I just want to get the software to work. Thanks in advance for any assistance.
python3 -m pip install --upgrade pip
pip3 install numpy
Check if you can upgrade pip?
If that works then you can pip install numpy.
When executing ZeroBraneStudioEduPack-1.70-linux.sh i get this error: xdg-desktop-menu: No writable system menu directory found.
It could be related to my desktop environment ? currently i'm using sway with xwayland.
According to this answer, seems to be an xdg bug. You can check if running sudo mkdir /usr/share/desktop-directories/ before running the install command fixes the issue. I'll consider adding it to the install script if it helps.
I was prompted to update Erlang on my machine and I did. Then when I restarted my server I was prompted to update using mix local.hex.
When i did this it gave me the following error.
mix local.hex --force didn't work either.
I eventually found out that I installed erlang originally without brew originally which is where the prompt came from. After I updated it, it caused an issue with mix local.hex.
I manually removed the folder /usr/local/lib/erlang and all erlang on my machine. I installed erlang using 'brew install erlang' and then ran 'brew link erlang'
This originally didn't work because I didn't have permission but then I ran the following to get permission.
sudo chown -R $(whoami) /usr/local/lib
After that 'brew link erlang' worked and I was able to run 'mix local.hex' like normal.