Composer require maatwebsite/excel not installing - laravel-7

I am using laravel 7 and php 7.4.3
While using the composer command to install maatwebsite.
It through error u can see in theenter image description here image

You need php extension ext-gd.
If you using Ubuntu:
sudo apt-get install php-gd
https://www.php.net/manual/ru/image.installation.php

Related

My codeIgniter 3 project is not working no ubuntu 22.04 where as same project perfect working on window

My codeIgniter 3 project is not working no ubuntu 22.04 where as same project perfect working on window..
and i now download codeIgniter 3 new project it perfectly showing the default page but not show other pages which i created
this project is on xampp server
just what do load the project other pages
Because on your local server you haven't installed php and its supporting extensions like intl extension and mbstring
You need to try installing the extension.
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install -y php5.6
The software will then be installed on your system.
In order to check the version number of your installed PHP, run the following command:
$ php -v
Now you have PHP 5.6 installed, but most use cases require that you install additional PHP modules like MySQL support, Curl, GD, etc. Run the below command to install some commonly used modules.
$ apt-get install php5.6-gd php5.6-mysql php5.6-imap php5.6-curl php5.6-intl php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-tidy php5.6-xmlrpc php5.6-xsl php5.6-zip php5.6-mbstring php5.6-soap php5.6-opcache libicu65 php5.6-common php5.6-json php5.6-readline php5.6-xml
I hope this helps

How to install node.js v16 on VPS cPanel WHM when ea-nodejs10 installs v10.24.1?

I want to yum install xrpl to sign transactions via the xrpl.js library on a cPanel WHM VPS and have made it through How to install a Node.js Application enough that all four ea-*** RPMs, including ea-nodejs10 v10.24.1, have been installed. However, xrpl.js recommends node.js v14 while also supporting v12 & v16.
Further, package-lock.json must be installed prior to xrpl.js - yet even though WHM Edit Package shows package-lock.json added:
yum install package-lock.json throws "No package package-lock.json available." Although repeating yum install ea-nodejs10 returns "Package already installed."
So I would appreciate advice on how to install node.js v14 and package-lock.json on this system thanks.
I am now able to sign, send, and validate XRP Ledger transactions with python - hence my iOS-XRPL UI javascript brew will delegate its signing-validating to python functions.
Edit:
MobileApp-XRP Ledger blockchain Linux dedicated server xrpl-py library installation
MobileApp business XRPL transactions on MoblieAppDomainName.com browser requires a Dedicated Server, instead of a VPS, to install the required xrpl-py python library. Several guides continue to evolve for the several systems.
Present solution starts with Bluehost Linux DS Python Installation latest version 3.9.2 guide.
However the make install command attempts - and fails - to break the existing python 2.7 installation integral to the cPanel framework and needs to be replaced by make altinstall as described by Grepitout: How to Install Python 3 in cPanel Server.
Except that didn't quite work either -> What eventually worked on author's Mac OS-Linux system was Computing for Geeks: Install Python 3.9 on CentOS 8 / CentOS 7 guide:
$ ssh username#serveripaddress
sudo yum -y update
sudo yum groupinstall "Development Tools" -y
sudo yum install openssl-devel libffi-devel bzip2-devel -y
$ gcc --version
sudo yum install wget -y
wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz
tar xvf Python-3.9.7.tgz
cd Python-3.9*/
./configure --enable-optimizations
sudo make altinstall
$ python3.9 --version
Python 3.9.7

Can not Install NPM along side with the ROS melodic?

I am using ROS melodic for my current project but I need to install nodejs for my college work in ubuntu 18.04. When I install nodejs by using the following commands
sudo apt install nodejs
sudo apt install npm
it gives me an error like this.
error
So I installed that dependency but after installing that dependency my ros packages removed. How can I install the npm without losing the ROS melodic?
Thanks in advance !!
I found something on the internet that take me to the solution,
I installed python virtual environment
https://linuxize.com/post/how-to-create-python-virtual-environments-on-ubuntu-18-04/
in that virtual environment I installed nodeenv with the help of pip
https://pypi.org/project/nodeenv/#id73
I created node.js virtual environment in which I installed the NPM without getting any error.
And we can also install nodeenv with the global environment too!
I faced the same problem and solutions were deleting whole ros melodic.
found the solution as follows:
$ sudo apt-get purge nodejs npm
after this command if you installed nodejs it's going to be deleted.
enable the NodeSource repository by running the following curl command:
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
then:
$ sudo apt-get install -y nodejs
the nodejs package contains both the node and npm binaries.

Install a specific nodejs version with apt-get

I am a newbie with Linux general, and here's what I am trying to achieve:
I am trying to install nodejs version on Debian Linux with the following command:
apt-get install nodejs=8.14.0
But I get this error in return:
E: Version '8.14.0' for 'nodejs' was not found
As far as I found, this is the correct way to specify a version. If I do this, then it works fine:
apt-get install nodejs
But I need this specific version, and not the latest one. I am doing this for a Docker image, so it has to be installed at runtime.
Make sure you have the following packages:-
sudo apt-get install \
apt-transport-https \
curl \
software-properties-common
Enable the NodeSource repository by using a command:-
sudo curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
After enabling the repository, install Node.js using a command:-
sudo apt-get install nodejs
If you're doing this for a Docker image, why not just use the Node Docker image with the version you need?
You can try installing your node using a package manager like nvm:
Installing Node.js to linux
Or download the binaries directly from here:
Node.js v8.14.0

Cannot install node version 8.11.2 into my ubuntu machine

I need to install nodejs version8.11.2 into my ubuntu machine. my ubuntu versions is 18.04.
In my machine installed node version is 10.0. Although I use 'sudo apt-get remove nodejs' command to uninstall nodeJS, it is not removing. When i run node -v, it gives the same version.enter image description here
enter image description here
Install Node.js from the NodeSource repository
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
The command above :
Adds the NodeSource signing key to your system.
Creates an apt sources repository file.
Installs all necessary packages.
Refreshes the apt cache.
Then you can do : sudo apt install nodejs
At the time of writing this 12.4.2 is the current latest Node.js version.
You can install version 10.16.0 by changing setup_12.x to setup_10.x in the first command.

Resources