Search This Blog

Showing posts with label osx. Show all posts
Showing posts with label osx. Show all posts

Friday, March 6, 2020

How to Install Laravel on Mac OSX

If you're facing this issue with macOS Catalina, I recommend these steps:

[PS: do not waste your time installing apt-get or yum ]

-- Just Install Homebrew (if you haven't already done so): head over to brew.sh or simply run this command: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

-- Run brew install php@7.3


Update your $PATH variable to include the newly installed version of php:
>>> echo 'export PATH="/usr/local/opt/php@7.3/bin:$PATH"' >> ~/.zshrc
-- Also --
>>>>>> echo 'export PATH="/usr/local/opt/php@7.3/sbin:$PATH"' >> ~/.zshrc

-- Reload your shell preferences script $ source ~/.zshrc or source ~/.bashrc

Finally, install laravel: composer global require laravel/installer

Tuesday, March 19, 2019

OSX JAVA_HOME openjdk-11.0.2.jdk Error Requirements check failed for JDK 1.8 or greater

1.Remove all the Java related packages (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ):



2.Purge config files (careful. This command removed libsgutils2-2 and virtualbox config files too):


3.Remove Java config and cache directory:



4.Remove manually installed JVMs:



5.Remove Java entries, if there is still any, from the alternatives:



done

6.Search for possible remaining Java directories:



7.Install JAVA-8-SDK



8.Open





Try to run your ionic app again :) Njoy!

content-wide advt