Complete Noob with Questions (a bit lengthy, my apologies) #737
Replies: 1 comment 4 replies
-
Hi there, I'll try my best to help you out a little. Just so you know, this discussion forum is specifically geared toward Homebrew related things, so your "bonus questions" may be best suited for other places. Based on the error messages I'm seeing, it appears that your command-line tools (CLT) are out of date. There are a few ways to solve this. The easiest is probably to check is System Preferences → Software Update to see if there are any updates (especially ones for the CLT). Try installing those updates. If that doesn't work, you can download the latest version of the CLT from the Apple Developer website. You may need to make a free Apple Developer account. You're looking for the latest stable version of the "Command Line Tools for Xcode". Currently, it looks like the latest stable version is "Command Line Tools for Xcode 12.4". If neither of those work, you can try running To explain why We allow for the installation of two types of packages. Some packages are called formulae. These are generally command-line tools that we pre-compile. The other type are called casks. Casks are generally used to install pre-built applications more easily. Essentially, it automates the normal process of downloading an application (downloading and opening a Both formula and cask functionality are built-in to Homebrew. You don't need to install anything (except Homebrew) to install casks. When you run Here's where it gets a tad confusing: there is a formula called When you run So, in the future, if you want to install a cask, you can simply run To try to answer your question about terminal colors, you may want to check out the That's probably the easiest way to get colored output. If you really wanted/needed, you could create your own custom prompt, but this is a lot of work (especially for a beginner who isn't super familiar with the terminal and how that works). If you want to get the hang of using the terminal, I would recommend checking out CodeAcademy's Bash/Shell tutorial. It looks like they may have changed the website, though, and it may no longer be free. I don't have any specific resources in mind, but I think you can find many tutorials if you do a little searching. One tutorial that came up that looks reasonable to me is https://ubuntu.com/tutorials/command-line-for-beginners. I only skimmed it, but it looks like a good resource to start. Note that while that tutorial is specifically about Linux, it should be totally applicable to macOS as well. I hope that helps a little bit. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, I'm completely new to programming and even using the terminal (on Mac), and I need some help. I have been trying to do as much research as I can to prepare for learning and doing programming. One of the things that I read was to install Homebrew, as it was stated that it would become much more beneficial to me down the line having an environment with Homebrew and it's packages installed and all ready to go.
Before I continue, I want to mention a couple of things as it may help you diagnose the issues I'm having. First and foremost, as I said I am completely new to programming and the terminal. In fact, I have only just written my first hello_world program in Python. Likewise, I have never used the terminal outside of recently learning some basic commands for navigating the Mac's folder structure. Additionally, I have also installed oh-my-zsh (per reading instructions on how to do it; I had no idea what I was doing as I was doing it or really what all of the stuff in the terminal meant). I should note that the real reason for installing it was to hopefully have a more customizable terminal with different colors for different things (this is not so much for aesthetic purposes as it is for my visual needs; I am visually impaired and having different colors for different types of things helps me to distinguish between them much more efficiently, however, it doesn't seem to have as much color differentiation as I had initially anticipated). Anyways, so that is where I'm at at the moment:
Here are my issues:
I installed Homebrew just fine--no errors that I saw. Then I read that I should install cask. After having read some basic commands, I though it wise to use this: $ brew info cask so that I could find out about cask. At that moment, my assumption was that I had to work backwards installing the dependencies (track backwards to find dependencies that needed no dependencies and install those first). That led me to first do $ brew install pkg-config. When I did this I had gotten an error:
Unfortunately, I did not write it down or save the text to a text file (which I should have done).
I later found out that you can just install something that requires dependencies, and it will install all needed dependencies. So I just went straight for $ brew install cask. When I did this, I got a couple errors (this time I saved them):
Error: Failed to read Mach-O binary: /usr/local/Cellar/jemalloc/5.2.1_1/lib/pkgconfig/jemalloc.pc
Error: Your CLT does not support macOS 11.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
Error: An exception occurred within a child process:
SystemExit: exit
FAIL: 1
So now for the questions:
bonus questions:
For example, I'd like to have different colors to distinguish between directories, files, hidden files and such. I really don't know what other types of things I will encounter in the terminal, but I would just like to have as much differentiation as I can, as that will make it easier for me visually to be more efficient in the terminal.
I know that I can just Google something about the terminal as I go, but I'd like to find something that allows me to build a foundation, that has a finite starting point and continues to guide me down a path, building on top of that foundation. When I Google something specific about a terminal task, and I read an article or post, I end up just coming away with more questions and no real understanding.
Ok, so that's it. I'm really sorry for the length of this post. I'm just completely new, have no idea what I'm doing, and have tons of questions. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions