- Alternatively, you can run Media Composer in Trial mode for the duration of the beta. Users who are running macOS Catalina (v.10.15) can download the Media Composer 2020.2 installer from the Avid Download Center and install it.
- When I upgraded to Mac Catalina, I too, cannot drag/drop files, jpgs, pngs, etc., to any existing folder on my Desktop. I don't see why this evidently common functionality should be removed, when it was available in the previous OS. A fix or workaround would be greatly appreciated!
- Attempting to download macOS Catalina from the Mac App Store you may find that a small version of the “Install macOS Catalina.app” file downloads to the “Applications” folder, rather than the complete 8.1 GB installer file.
- For example, if your Mac came with macOS Big Sur, it will not accept installation of macOS Catalina or earlier. If a macOS can't be used on your Mac, the App Store or installer will let you know. For example, it might say that it's not compatible with this device or is too old to be opened on this version of macOS.
XQuartz Installer Installation Type. Before the software installation will commence, confirmation of the user is requested as displayed in Figure 7. Either use the finger print scanner on the touch bar of your mac or confirm using the password of your mac.
Learning and understanding Laravel, the PHP framework for web artisans can greatly improve your PHP development experience and actually make it fun, but just concentrating on the things that matter most.
Laravel takes care of all the boring lower value cruft work a developer has to go through just to get a typical site up and running.
It really is an awesome framework, however, for a new developer to get it installed can be somewhat intimidating and there are so many tools and components that come along with it, that things can get a little confusing.
Although the documentation on Laravel is quite extensive and can really help to get you working with the framework, Ironically we have found that the documentation to get it all installed and working can be a little confusing and in some areas lacking.
In this post, we hope to address some of these issues help you get up and running with Laravel on Mac OSX .
Table of contents
- How to Install PHP 7.2 on Mac OSX
- How to install Composer on Mac OSX
- How to Install Laravel on Mac OSX
- How to Add Laravel to Path on Mac OSX
- What is PATH?
- How to Edit your laravel PATH on Mac OSX
- Approach 1
- Approach 2
- Example of using Laravel new
- Install Laravel Homestead
- Configure Homestead Per Project
- Summary
How to Install PHP 7.2 on Mac OSX
The best way to set up a development environment or even to manage the packages installed on Mac OSX is to Homebrew
A word of caution though HomeBrew
If you have Homebrew installed, installing PHP is very simple, in the example below we will be installing PHP 7.2, which at the time of writing is the most current version.
PHP 7.2 is now the default in HomeBrew
If you want to have the ability to step through and debug your PHP applications you will need to install xdebug
which you will have to do using PECL
. PECL is a repository of PHP extensions which provides all known extensions and hosting facilities for downloading and development of PHP extensions.
Full Instructions to configure PHP 7 & Xdebug on Mac OSX
How to install Composer on Mac OSX
In order to install and easily use the Laravel framework, we will need to install composer
If you would like to install composer without making use of Homebrew you can so by
if you are not using HomeBrew you can install composer using Curl
Once the install has completed you can test it out by simply executing composer
How to Install Laravel on Mac OSX
We can now install Laravel using composer we will add it to the global composer
We can also generate new Laravel web applications using
How to Add Laravel to Path on Mac OSX
The Laravel Documentation refers to an alternate method of creating a new Laravel project by using,laravel new
but it requires an additional configuration step to make it work.
Make sure to place composer’s system-wide vendor bin directory in your $PATH
so the Laravel executable can be located by your system.
In my opinion, this does not clearly explain what this means or provides sufficient detail on how to do this.
What is PATH?
*nix Operating Systems and Microsoft Windows use Environment variables hold values related to the current environment. PATH
is an environment variable which is used for specifying a set of directories where executable programs are located.
In general, each executing process or user session has its own PATH setting.
How to Edit your laravel PATH on Mac OSX
There are 2 approaches you can take to edit your PATH
on MAC OSX
Approach 1
Using your terminal window, open $HOME/.bash_profile
, using any Text editor of your choice. Typically using either nano or Vim.
In this example, I will use nano
You can just copy and paste the following commands towards the end of the file –
After completing, CTRL + X
to exit and save the file.
You will then also need to refresh your current terminal window with updated bash_profile.
Install Composer Mac Catalina 2020
Approach 2
If you want to edit bash_profile
all in one line you can do so by :
You will then also need to refresh your current terminal window with updated bash_profile.
Once you have completed either of the steps above you can now create new projects using commandslaravel new [project name]
.
Example of using Laravel new
We can create a new project named notepad using laravel new notepad
.
Change into the new notepad directory cd notepad
and start the project php artisan serve
Install Laravel Homestead
Laravel Homestead is a pre-packaged Vagrant box that provides a development environment without you having to install everything on your local machine. Enabling you to create a complete environment for your Laravel application.
In order to install this, you will need two additional components
- Virtual Box –
brew install caskroom/cask/virtualbox
- Vagrant –
brew install caskroom/cask/vagrant
After you have completed the installation of the above you can install Laravel Homestead by running the following:
It will take some time for the installation to complete, usually anywhere between 5 – 15 minutes depending on your connection and MacBook processing power.
Once complete you will have the latest copy of a complete Ubuntu Lamp stack server set up, which you can directly SSH into. The project files on your local machine will be synced with the VM.
Once the installation of Homestead completes, you will need to create a homestead.yaml
file that will hold all the configuration for your VM.
Configure Homestead Per Project
Homestead is configured using a YAML
file, which contains configuration information regarding sites & files on your computer, databases to create etc. When you start a new project, you have to add an entry to this file and re-provision.
When using Homestead on a per-project basis, you keep this file with your project and it contains only that project’s settings. Enabling you to quickly clone a project if it’s under source control, and quickly boot a Homestead instance for that project.
This is especially helpful when setting an existing project up on a new computer, as you don’t need to manually set up Homestead and configure it for your project.
To create a Homestead.yaml
for your project.
First, we need to add development Laravel/Homestead
dependency to our project.
To do this cd
into your project directory then execute:
Once complete we can now use this package to initialize files Homestead will require and create the Homestead.yaml
If you check your directory now you will notice a file, Homestead.yaml
created.
We are now almost ready to run our project, all we need to do now is add an entry to our Host file for the website.
Then we add an entry for our new website and save the file192.168.10.10 sourcelink.test
We can now just execute vagrant up
and browse to the test site http://sourcelink.test
Summary
You should now have the complete Laravel and homestead environment setup on Mac OSX. Go ahead and enjoy your new development environment and go create the next big thing.
- How my journey into Crypto world started. - July 26, 2021
- What is CQRS? - July 25, 2021
- Book Review: Implementing Domain Driven Design - July 25, 2021
Question or issue on macOS:
I am trying to run composer update and I get the following errors:
when running composer update
Overnight I have made the mistake of my life and allowed my Mac to automatically update the OS, so I am in macOS Catalina now.
I have tried adding
to my composer.json..but its not downloading that extension.
How to solve this problem?
Solution no. 1:
I had the same problem after updating my Mac to Catalina. Here is what worked for me.
Then reload your console.
It will install php 7.3.10 with zip module. You can use php -v to check for the version, and php -m for the modules.
Solution no. 2:
Following command fixed the issue on macOS Catalina
Solution no. 3:
On 10 March 2020, It works for me:
It is the only one command about PHP which work.
So, I think that the commands shown in the last posts are deprecated.
Solution no. 4:
If brew link is not working for you, check your php version installed by:
Here, you will see a version as such:
Should give you an output like:
Now you just need to link that to your $PATH which can be done as:
Note: I am using .zshrc because that is my terminal setup. If yours is bash, use accordingly.
Install Composer Mac Catalina Download
You can check which version of php is now linked to your MacOS by running:
This should give you an output of:
That’s it. Now if you try composer update, it should not give you the extension issue.
Source (part of it): https://medium.com/@jjdanek/installing-php-extensions-on-mac-after-homebrew-acfddd6be602
Solution no. 5:
2020-05-16 updated
Like @marc-alexander said, this is a bad practice. You should not use --ignore-platform-reqs
option if you do not sure what you are doing.
I thought the option would ignore the platform requirements and install the specific version of the packages. But in fact it will ignore the platform requirements and install the highest available version of the packages.
So if you need the missing PHP extension, you should just install (or enable) it
Reference: ignore-platform-reqs installs dev-master instead of correct version
Original
If you do not need ext-zip
(e.g. You just want to do some quick fix), you can use --ignore-platform-reqs
option to ignore the requirements:
Solution no. 6:
I had problems with python symlink during the brew install php
.
/usr/local/Frameworks
didn’t exist so I had to create it:sudo mkdir /usr/local/Frameworks
cd /usr/local/
Then I had to chown it:sudo chown -R myuser:admin Frameworks
I based the permission settings on the rest of the folders in /usr/local
.
Then I could run brew link python
.
Then I ran brew install php
again and it completed.
Install Composer Mac Catalina 2019
php -v
now gives me php 7.3.10 , before it was php 7.3.18 I think.
Solution no. 7:
This worked for me
brew update
brew install [email protected]
brew link [email protected]
brew link [email protected] --force
Hope it helps
Install Composer Mac Catalina Update
Solution no. 8:
Instead of force linking you can also fix the problem in MacOS Catalina
by adding the php binary path to your bash profile e.g.:
Solution no. 9:
In my case I had to simply
Solution no. 10:
i know this thread has true answered, i do those with this approach :
brew link [email protected]
it is showing hint to usingecho 'export PATH='/usr/local/opt/[email protected]/bin:$PATH' >> ~/.zshrc echo 'export PATH='/usr/local/opt/[email protected]/sbin:$PATH' >> ~/.zshrc
in terminal,
echo 'export PATH='/usr/local/opt/[email protected]/bin:$PATH' >> ~/.zshrc
enterin terminal,
echo 'export PATH='/usr/local/opt/[email protected]/sbin:$PATH' >> ~/.zshrc
enternext execution this :
source ~/.zshrc
execution
which php
the results must show/usr/local/opt/[email protected]/bin/php
try again composer update, if show
Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/Cellar/composer/1.9.2/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
please change php.ini limit withmemory_limit = -1
try search php.ini, type in terminal
/usr/local/opt/[email protected]/bin/php --ini
, the results must show: Configuration File (php.ini)Path: /usr/local/etc/php/7.3 Loaded Configuration File: /usr/local/etc/php/7.3/php.ini Scan for additional .ini files in: /usr/local/etc/php/7.3/conf.d Additional .ini files parsed: /usr/local/etc/php/7.3/conf.d/ext-opcache.ini
nano /usr/local/etc/php/7.3/php.ini
, append memory_limit =-1,saverestart php
re-execution composer update.
Hope my answer can help you.