getting "Unable to continue. Please install sudo before proceeding." when running command in heroku cli - heroku

getting "Unable to continue. Please install sudo before proceeding." error when running command to install new relic

Related

Installing Heroku CLI on a mac

Following the documentation, I tried installing the Heroku CLI by typing the following into Terminal:
brew tap heroku/brew && brew install heroku
The installation seems to work successfully. However, when I then type heroku --version, or indeed any other Heroku command, I get the error message:
zsh: command not found: heroku
Can anyone please explain what I am doing wrong here? Many thanks in advance.

Error: sudo: amazon-linux-extras: command not found

System Information: Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1045-aws x86_64)
Problem: Trying to run sudo amazon-linux-extras install epel -y and sudo yum install -y chromium Because i need it for my Discord Bot which has the error of:
Discord Bot Error:
Mashwishi using command cyt!price
/home/container/node_modules/node-html-to-image/node_modules/puppeteer-cluster/dist/Cluster.js:120
throw new Error(`Unable to launch browser, error message: ${err.message}`);
^
Error: Unable to launch browser, error message: Failed to launch the browser process!
/home/container/node_modules/node-html-to-image/node_modules/puppeteer/.local-chromium/linux-737027/chrome-linux/chrome: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
at Cluster.<anonymous> (/home/container/node_modules/node-html-to-image/node_modules/puppeteer-cluster/dist/Cluster.js:120:27)
at Generator.throw (<anonymous>)
at rejected (/home/container/node_modules/node-html-to-image/node_modules/puppeteer-cluster/dist/Cluster.js:6:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
So I went to check the article for troubleshooting Running Puppeteer on AWS EC2 instance running Amazon-Linux since we're running Amazon AWS EC2. So I tried to the commands:
sudo amazon-linux-extras install epel -y
The error is: sudo: amazon-linux-extras: command not found
sudo yum install -y chromium
The error is: sudo: yum: command not found

install mod_wsgi on mac: error: command '/usr/bin/clang' failed with exit status 1

I want to run Django project on Apache. So I tried to install mod_wsgi.
I got this error
sudo pip3 install mod_wsgi
then I got this error
error: command '/usr/bin/clang' failed with exit status 1
For macOS you need to have installed both the Xcode application and the Xcode command line tools.

vagrant up failing because of PPA: libapache2-mod-php5

When I try to launch a new development environment running Ubunut in virtualbox I save my framework to a directory in Sites on my mac, then open terminal and cd to the directory with the Vagrantfile before running "vagrant up". After an initial start I get several errors that end in the environment not starting. The error is:
The following packages have unmet dependencies:
libapache2-mod-php5 : Depends: apache2-api-20120211 but it is not installable. PreDepends: apache2 (>= 2.4)
When I try to upgrade the PPA, for example running the code:
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
I get the error that add-apt and/or get-app command not found! I do not know what to do.
Vagrantfile and Provision script

problems installing scrapy ..missing gcc 4.0

I am having trouble installing scrapy with easy_install, I get:
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
I have gcc-4.2. I've been trying to downgrade to gcc-4.0 but cannot figure out a way ...
You need to setup your environment:
First, install Command Line Tools for Xcode (I'm not 100% sure that you can install without XCode, if not then install XCode from App Store).
Then install MacPorts
To complete macports setup run this command in Terminal.app:
% sudo port selfupdate
If you done, then you can install scapry from macports:
% sudo port install py27-scrapy
Afther this you should be able to use scrapy command in Terminal.app.

Resources