Problem Using Terminal App on Mac

I’m trying to use an older Mac Mini (2009), using OS X 10.11, to learn Python programming. In addition to installing Python (done without problems) it is necessary to install numerous add on modules. This requires using the Terminal.


The first step is to install Homebrew. Their website has a script to paste into Terminal that is supposed to do the installation. It is:


/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


However when I use it I get an “Illegal variable name” error message.


Another script from Github that is designed to add Homebrew plus some other things is also failing. It is:


bash <(curl -s https://raw.githubusercontent.com/monfresh/laptop/master/laptop)


It gives a “Missing name for redirect” error message.


I have a feeling something is amiss with my Mini or with the Terminal program as no one else seems to be having any issues. I’m not sure where to start to troubleshoot this problem. Any suggestions will be greatly appreciated.


Dan

User uploaded file

Mac mini, iOS 10, iOS 10.11.6

Posted on Mar 9, 2018 10:34 AM

Reply

Similar questions

6 replies

Mar 9, 2018 2:14 PM in response to DanUgrin

Bash should be the default shell for Terminal. In Terminal Preferences, the Shell tab should not have the Run command checked. It should be empty.


In System Preferences : Users & Groups, unlock the panel, click on your user name, and right-click to get Advanced Options… . You should see the Login Shell field set to /bin/bash, which is the default there.


I happen to have both Xcode and the Command Line Tools installed, and have no problems with Homebrew. I am not however, going to uninstall, and reinstall it to debug whether there is an issue with the remote install.rb script.


OS X installs Python 2.7.n by default. Was there a specific reason that you wanted to add another version of Python?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Problem Using Terminal App on Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.