Hi there,
I’m not too familiar with how the command line works but I am trying to generate a certificate using Certbot on Terminal. I have Shell access on cpanel. I followed the instructions and all was well until I entered $ brew install certbot and got the result -bash: $: command not found
I then looked around and someone suggested typing “brew install letsencrypt” which I did and which generated a ream of information which I don’t understand. I don’t know where to go from here? Can anyone help please?
To give required information:
The domain is billykissanemeats.ie (haven’t been required to specify that anywhere though)
Command line run: /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Full copy and paste from Terminal:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/bin
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
==> The following existing directories will have their owner set to noelleleahy:
/usr/local/bin
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
==> The following existing directories will have their group set to admin:
/usr/local/bin
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/etc
/usr/local/include
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/share/man /usr/local/share/man/man1
Password:
==> /usr/bin/sudo /usr/sbin/chown noelleleahy /usr/local/bin /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/share/man /usr/local/share/man/man1
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/share/man /usr/local/share/man/man1
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown noelleleahy /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/mkdir -p /Users/noelleleahy/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/noelleleahy/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown noelleleahy /Users/noelleleahy/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown noelleleahy /Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools (macOS Sierra version 10.12) for Xcode-8.1
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (macOS\ Sierra\ version\ 10.12)\ for\ Xcode-8.1
Software Update Tool
Copyright 2002-2015 Apple Inc.
Downloading Command Line Tools (macOS Sierra version 10.12) for Xcode
$ brew install certbot
Downloaded Command Line Tools (macOS Sierra version 10.12) for Xcode
Installing Command Line Tools (macOS Sierra version 10.12) for Xcode
Done with Command Line Tools (macOS Sierra version 10.12) for Xcode
Done.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
==> Downloading and installing Homebrew…
remote: Counting objects: 4145, done.
remote: Compressing objects: 100% (2756/2756), done.
remote: Total 4145 (delta 2104), reused 2666 (delta 1242), pack-reused 0
Receiving objects: 100% (4145/4145), 2.42 MiB | 756.00 KiB/s, done.
Resolving deltas: 100% (2104/2104), done.
From https://github.com/Homebrew/brew
- [new branch] master -> origin/master
- [new tag] 0.1 -> 0.1
- [new tag] 0.2 -> 0.2
- [new tag] 0.3 -> 0.3
- [new tag] 0.4 -> 0.4
- [new tag] 0.5 -> 0.5
- [new tag] 0.6 -> 0.6
- [new tag] 0.7 -> 0.7
- [new tag] 0.7.1 -> 0.7.1
- [new tag] 0.8 -> 0.8
- [new tag] 0.8.1 -> 0.8.1
- [new tag] 0.9 -> 0.9
- [new tag] 0.9.1 -> 0.9.1
- [new tag] 0.9.2 -> 0.9.2
- [new tag] 0.9.3 -> 0.9.3
- [new tag] 0.9.4 -> 0.9.4
- [new tag] 0.9.5 -> 0.9.5
- [new tag] 0.9.8 -> 0.9.8
- [new tag] 0.9.9 -> 0.9.9
- [new tag] 1.0.0 -> 1.0.0
- [new tag] 1.0.1 -> 1.0.1
- [new tag] 1.0.2 -> 1.0.2
- [new tag] 1.0.3 -> 1.0.3
- [new tag] 1.0.4 -> 1.0.4
- [new tag] 1.0.5 -> 1.0.5
- [new tag] 1.0.6 -> 1.0.6
- [new tag] 1.0.7 -> 1.0.7
- [new tag] 1.0.8 -> 1.0.8
- [new tag] 1.0.9 -> 1.0.9
- [new tag] 1.1.0 -> 1.1.0
- [new tag] 1.1.1 -> 1.1.1
- [new tag] 1.1.2 -> 1.1.2
HEAD is now at 0f529da Merge pull request #1573 from sorin-ionescu/fix-xcode-version-comparison
==> Tapping homebrew/core
Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core’…
remote: Counting objects: 3769, done.
remote: Compressing objects: 100% (3658/3658), done.
remote: Total 3769 (delta 14), reused 303 (delta 1), pack-reused 0
Receiving objects: 100% (3769/3769), 3.01 MiB | 887.00 KiB/s, done.
Resolving deltas: 100% (14/14), done.
Checking connectivity… done.
Tapped 3647 formulae (3,796 files, 9.3M)
==> Cleaning up /Library/Caches/Homebrew…
==> Migrating /Library/Caches/Homebrew to /Users/noelleleahy/Library/Caches/Home
==> Deleting /Library/Caches/Homebrew…
Already up-to-date.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
https://git.io/brew-analytics
==> Next steps:
- Run
brew help
to get started - Further documentation:
https://git.io/brew-docs
Noelles-MacBook-Pro:~ noelleleahy$
Noelles-MacBook-Pro:~ noelleleahy$ $ brew install certbot
-bash: $: command not found
Noelles-MacBook-Pro:~ noelleleahy$ $ brew install certbot
-bash: $: command not found
Noelles-MacBook-Pro:~ noelleleahy$ $ brew install certbot
-bash: $: command not found
Noelles-MacBook-Pro:~ noelleleahy$ brew help
Example usage:
brew search [TEXT|/REGEX/]
brew (info|home|options) [FORMULA…]
brew install FORMULA…
brew update
brew upgrade [FORMULA…]
brew uninstall FORMULA…
brew list [FORMULA…]
Troubleshooting:
brew config
brew doctor
brew install -vd FORMULA
Developers:
brew create [URL [–no-fetch]]
brew edit [FORMULA…]
https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md
Further help:
man brew
brew help [COMMAND]
brew home
Noelles-MacBook-Pro:~ noelleleahy$ $ brew install certbot
-bash: $: command not found
Noelles-MacBook-Pro:~ noelleleahy$ $ certbot --apache
-bash: $: command not found
Noelles-MacBook-Pro:~ noelleleahy$ $ brew install certbot
-bash: $: command not found
Noelles-MacBook-Pro:~ noelleleahy$ $ brew install CERTBOT
-bash: $: command not found
Noelles-MacBook-Pro:~ noelleleahy$ brew install letsencrypt
==> Installing dependencies for certbot: readline, sqlite, gdbm, openssl, python, libxml2, augeas, dialog, openssl@1.1
==> Installing certbot dependency: readline
==> Downloading https://homebrew.bintray.com/bottles/readline-7.0.sierra.bottle.
######################################################################## 100.0%
==> Pouring readline-7.0.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you’ll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/readline/lib
CPPFLAGS: -I/usr/local/opt/readline/include
==> Summary
/usr/local/Cellar/readline/7.0: 45 files, 2M
==> Installing certbot dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.15.2.sierra.bottle
######################################################################## 100.0%
==> Pouring sqlite-3.15.2.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
macOS provides an older sqlite3.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you’ll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/sqlite/lib
CPPFLAGS: -I/usr/local/opt/sqlite/include
==> Summary
/usr/local/Cellar/sqlite/3.15.2: 11 files, 2.9M
==> Installing certbot dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.12.sierra.bottle.tar
######################################################################## 100.0%
==> Pouring gdbm-1.12.sierra.bottle.tar.gz
/usr/local/Cellar/gdbm/1.12: 18 files, 486.8K
==> Installing certbot dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2j.sierra.bottl
######################################################################## 100.0%
==> Pouring openssl-1.0.2j.sierra.bottle.tar.gz
==> Using the sandbox
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you’ll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
==> Summary
/usr/local/Cellar/openssl/1.0.2j: 1,695 files, 12M
==> Installing certbot dependency: python
==> Downloading https://homebrew.bintray.com/bottles/python-2.7.12_2.sierra.bott
######################################################################## 100.0%
==> Pouring python-2.7.12_2.sierra.bottle.tar.gz
==> /usr/local/Cellar/python/2.7.12_2/bin/python -s setup.py --no-user-cfg insta
==> /usr/local/Cellar/python/2.7.12_2/bin/python -s setup.py --no-user-cfg insta
==> /usr/local/Cellar/python/2.7.12_2/bin/python -s setup.py --no-user-cfg insta
==> Caveats
Pip and setuptools have been installed. To update them
pip install --upgrade pip setuptools
You can install Python packages with
pip install
They will install into the site-package directory
/usr/local/lib/python2.7/site-packages
See: https://github.com/Homebrew/brew/blob/master/docs/Homebrew-and-Python.md
.app bundles were installed.
Run brew linkapps python
to symlink these to /Applications.
==> Summary
/usr/local/Cellar/python/2.7.12_2: 3,477 files, 46.7M
==> Installing certbot dependency: libxml2
==> Downloading https://homebrew.bintray.com/bottles/libxml2-2.9.4.sierra.bottle
######################################################################## 100.0%
==> Pouring libxml2-2.9.4.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you’ll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/libxml2/lib
CPPFLAGS: -I/usr/local/opt/libxml2/include
==> Summary
/usr/local/Cellar/libxml2/2.9.4: 276 files, 9.8M
==> Installing certbot dependency: augeas
==> Downloading https://homebrew.bintray.com/bottles/augeas-1.7.0.sierra.bottle.
######################################################################## 100.0%
==> Pouring augeas-1.7.0.sierra.bottle.tar.gz
==> Caveats
Lenses have been installed to:
/usr/local/share/augeas/lenses/dist
==> Summary
/usr/local/Cellar/augeas/1.7.0: 443 files, 3.2M
==> Installing certbot dependency: dialog
==> Downloading https://homebrew.bintray.com/bottles/dialog-1.3-20160209.sierra.
######################################################################## 100.0%
==> Pouring dialog-1.3-20160209.sierra.bottle.tar.gz
/usr/local/Cellar/dialog/1.3-20160209: 13 files, 816.2K
==> Installing certbot dependency: openssl@1.1
==> Downloading https://homebrew.bintray.com/bottles/openssl@1.1-1.1.0c.sierra.b
######################################################################## 100.0%
==> Pouring openssl@1.1-1.1.0c.sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs
and run
/usr/local/opt/openssl@1.1/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you’ll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/openssl@1.1/lib
CPPFLAGS: -I/usr/local/opt/openssl@1.1/include
==> Summary
/usr/local/Cellar/openssl@1.1/1.1.0c: 6,225 files, 15.3M
==> Installing certbot
==> Downloading https://homebrew.bintray.com/bottles/certbot-0.9.3_1.sierra.bott
######################################################################## 100.0%
==> Pouring certbot-0.9.3_1.sierra.bottle.tar.gz
/usr/local/Cellar/certbot/0.9.3_1: 1,980 files, 14M
Noelles-MacBook-Pro:~ noelleleahy$ $ certbot --apache
-bash: $: command not found
Noelles-MacBook-Pro:~ noelleleahy$ $ brew install certbot
-bash: $: command not found
Noelles-MacBook-Pro:~ noelleleahy$
Name and version of operating system and web server:
MacOS 10.12.1
server: Apache (I assume this is the web server where domain is hosted? If so, yes it is Apache)
Type of hosting provider: Regoster365, via cpanel (I have Shell access)
Thanks in advance.