![]() It is one application that shows all the windows of apps that use X11. The XQuartz project is an implementation of the X Window System on Mac OS X. The X Window System is a system used to show windows, controls, and UI elements in general. You might be installing things that have actual windows and a GUI more often, and that's where X11 comes in. So, that command uses port to install the nmap tool. It's another command-line tool, and you use it for things like port scanning. nmap is the name of the program to install.You might see this referred to as a “subcommand”, which is because you're telling port what to do in general, rather than giving a specific thing like the name of what you want to install. install is an argument (also known as a command-line option) to the port command.port is the name of the Macports command itself.It only works if you're an admin, and you have to enter your password. sudo means that you'll be doing this as the “root user”, which can do (almost) anything with your system.You will see the $ right before your cursor in Terminal. In the official documentation, it's a %%, but they both mean the same thing don't paste or type that part, only the command after it. The $ at the beginning generally means that you have to enter the rest of the line into Terminal.You use it in Terminal.app like this: $ sudo port install nmap Macports is a tool for installing applications and command line tools on your Mac, with a huge library of “ports” (the Macports term for something that can be installed). If the answer is simply, "you need to understand these terms to understand what Macport is," then that's okay. What is Macports used for? Can you give me a concrete example?.Can anyone provide me with a simple explanation (to an average, rather than 'super' user) of the following questions: I assume I'm not computer literate enough to understand it's purpose. But using MacPorts to manage your open source software provides several other significant advantages. ![]() This allows you to use a single command to tell MacPorts to automatically download, compile, and install applications and libraries. A MacPorts port is a set of specifications contained in a Portfile that defines an application, its characteristics, and any files or special instructions required to install it. MacPorts may be conceptually divided into two main parts: the infrastructure, known as MacPorts base, and the set of available ports. MacPorts is an easy to use system for compiling, installing, and managing open source software. Zend Engine v3.0.So, I've read the documentation on Macports. Verify the executable using PHP cli: $ php -v You can verify this by executing $ sudo port select -list php: Available versions for php: Select PHP 7 as the current PHP version: $ sudo port select php php70 Or $ sudo /opt/local/etc/LaunchDaemons/2/apache2.wrapper restart Now we have configured PHP 7 and Apache, we need to restart Apache: $ sudo port unload apache2 \ LoadModule php7_module modules/mod_php70.soĪt the bottom of the same file, you need to add this line for PHP 7 (and possibly delete the same line for PHP 5): Include conf/extra/mod_nf #LoadModule php5_module modules/mod_php56.so If phpinfo() still uses PHP 5.6 (or any other PHP version), you need to uncomment the PHP 5 module in /opt/local/apache2/conf/nf. This may lead to two PHP modules being loaded in the Apache configuration file. $ sudo /opt/local/apache2/bin/apxs -a -e -n php7 mod_php70.so Once installed you must activate the handler: $ cd /opt/local/apache2/modules Install the Apache handler for PHP 7: $ sudo port install php70-apache2handler Activating PHP 7 $ sudo port install php70-cgi php70-gd php70-curl php70-intl php70-iconv php70-gettext php70-mbstring php70-imap php70-mcrypt php70-xmlrpc php70-mysql php70-openssl php70-sockets php70-zip php70-tidy php70-opcache php70-xsl php70-sqlite Install PHP 7, and the extensions you need: $ sudo port install php70 If you need help for actually installing PHP/Apache/MySQL, read this blogpost: Installing MAMP (Mac OS X Apache MariaDB PHP) using MacPorts. I had already installed PHP 5.6 using MacPorts, so this guide is about upgrading a PHP 5 installation to a PHP 7. PHP 7 was released earlier this month, time for me to upgrade my development environment to keep up to date with this new version. ![]()
0 Comments
Leave a Reply. |