php command not found while installing composer - command-line

I am using ubuntu OS. I am trying to install composer.
my $PATH is
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/opt/lampp/bin/php
while entering following command it shows error php is not command
curl -sS https://getcomposer.org/installer | sudo php --
--install-dir=/usr/local/bin --filename=composer
error sudo:
php: command not found
curl: (23) Failed writing body (0 != 16133)

Do you use PHP7? Then the command should be this.
curl -sS https://getcomposer.org/installer | php70

Related

Getting Error in example Project for hyperledger sawtooth

I want to start this project https://github.com/hyperledger/education-sawtooth-simple-supply
My environment is Ubuntu 18.04.6 LTS , docker-compose version 1.17.1, Docker version 20.10.17, when i follow the instruction it pulls the container but in the end it stops with the error
Warning: apt-key output should not be parsed (stdout is not a terminal)
curl: (6) Could not resolve host: p80.pool.sks-keyservers.net
gpg: no valid OpenPGP data found.
ERROR: Service 'simple-supply-shell' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y -q curl gnupg && curl -sSL 'http://p80.pool.sks-keyservers.net/pks/lookup?op=get&search=0x8AA7AF1F1091A5FD' | apt-key add - && echo 'deb [arch=amd64] http://repo.sawtooth.me/ubuntu/chime/stable bionic universe' >> /etc/apt/sources.list && apt-get update' returned a non-zero code: 2
Your quick assistance is highly appreciated.
The only solution was that i changed the network option to Bridge Adapter in a virtual machine and it got worked im answering this because i have dont this if someone has resolved other way then post an answer here.

/bin/sh: url: command not found

Running a Dockerfile containing
RUN yum install python3 -y\
&& url -O https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py\
#no --user - install for the whole machine
&& pip install awscli --upgrade
I get
/bin/sh: url: command not found
I clicked trough a lot of /bin/sh: xyz: command not found and didn't find more than I already knew: the package/executable url seems to be missing on my system. How do I install this on CentOS? A web search also yielded only useless results.
yum install -y url gives me No package url available.
While the command url -O https://bootstrap.pypa.io/get-pip.py looks right on first sight, It contains a typo or copy-paste-mistake. curl -O https://bootstrap.pypa.io/get-pip.py with curl instead of url being correct.

Cloud confluent kafka installation failed in ubuntu 18

Instruction page says as:-
Install the Confluent Cloud CLI
Run this command to install the Confluent Cloud CLI.
curl -L --http1.1 https://cnfl.io/ccloud-cli | sh -s -- -b /usr/local/bin
it failed for permission
"install: cannot create regular file '/usr/local/bin/ccloud':
Permission denied"
Even if I tried
sudo curl -L --http1.1 https://cnfl.io/ccloud-cli | sh -s -- -b /usr/local/bin
Same error. How do I install it?
Well, I installed it as:-
curl -L --http1.1 https://cnfl.io/ccloud-cli | sh -s -- -b ~/Downloads/
After the above command
sudo mv ~/Downloads/ccloud /usr/local/bin/
Everything is fine now.

Katello Installation failing wget

Im trying to install Katello on CentOS 7
I get the following error:
# foreman-installer --scenario katello --katello-proxy-url http://proxy.domain.com --katello-proxy-port 8080 --foreman-admin-username admin --foreman-admin-password test123!
/usr/bin/wget --no-proxy --timeout=30 --tries=40 --wait=20 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init > /var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
Can anyone confirm or solve?
kind regards

Installing git-flow on Ubuntu 10.10 fails silently

I'm trying to install gitflow using the directions on the github readme a la : wget -q -O - https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sudo sh
And it's failing silently...just back to the prompt. Any ideas?
Hey, it is a problem with github certificate and wget
ERROR: certificate common name `*.github.com' doesn't match requested host name `github.com'.
To connect to github.com insecurely, use `--no-check-certificate'.
just override wget checks
wget --no-check-certificate -q -O - https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sudo sh
works just fine ;)