Upgrading from php 5.3 to php 5.4 with Macport
PHP5.4 has been available for sometime now and Macport recently caught up with the release of port php54 but the process of upgrading is not as clear as possible. Even worst for those who are new to maintaining multiple versions of PHP on the same machine. I am keen on trying out some of the new features in PHP5.4 like traits, new array form etc but falling back on to php5.3 for other compatibility stuff. [...]
Continue Reading »How to compile PHP with ldap support in PHP in a Mac ports Environment?
I had originally installed the LAMP stack using Mac Ports. Another project requires me to enable LDAP support. How do I get about installing it using Mac Ports? My PHP info file has no mention of LDAP. Since I do not have LDAP, I am getting error in my PHP script like: Fatal error: Call to undefined function ldap_connect() Asked by jini sudo port install php5-ldap. Answered by SvenW Check more discussion of this question. [...]
Continue Reading »Installing MySQL 5.5.19 with Macports
The MySQL packages currently available on Macports are up to date for branch 5.1, but for 5.5 they are quite old (the latest one available is 5.5.2). Is there some way to install the latest one at this moment (5.5.19)? Why is the package so old? Why insist on macports? Can you not download the most recent version from mysql.com and install it? I did and it seems to work just fine. Check more discussion [...]
Continue Reading »Why is there a sites-enabled sometimes, and there isn’t in other times?
Why is it that on my mac server, the Apache installed with Macports doesn’t have a sites-enabled folder, like my Apache on my Ubuntu server? Are there different Apache distributions for different platforms? And can I get it to have that? Can I use a2ensite and a2dissite without having that? Are there different Apache distributions for different platforms? Yes, or more accurately, different platforms package Apache differently. And can I get it to have that? [...]
Continue Reading »Mac Os Server, how to make bind point www.mydomain.com to the same machine bind is installed on?
I want to set my server’s IP as DNS and then be able to to make domains like myproject.com, and also www.myproject.com, and *.applications.com point to the same server where I will be hosting these files in apache. I installed macports, and here is my configuration file: /opt/local/etc/named.conf // Declares control channels to be used by the rndc utility. // // This must be enabled on Mac OS X Server for Server Status to provide [...]
Continue Reading »How to maintain a macports installation
I’ve used the apt family of package managers for some time and started using macports last year when I got a laptop. I’m at a bit of a loss at the best way to keep packages up-to-date though, and any other maintenance tasks I should be looking out for. My question is, beside periodically using port upgrade on specific packages, what is the workflow for getting regular security and package updates? I run the following [...]
Continue Reading »Trouble installing boost on Leopard using macports
Building boost with macports falls causes a cc1plus process to run forever. Anyone know anything about this? (BTW, port is version 1.710 and I’m running OS X 10.5.6 with kernel 9.6.0) $ port install boost —> Fetching boost —> Attempting to fetch boost_1_38_0.tar.bz2 from http://superb-east.dl.sourceforge.net/boost —> Verifying checksum(s) for boost —> Extracting boost —> Applying patches to boost —> Configuring boost —> Building boost Have you tried running sudo port -d install boost to enable [...]
Continue Reading »MANPATH in man.conf
I’ve installed mac-ports which puts everything under /opt/local. The corresponding man pages are in /opt/local/man. I added the following line to /private/etc/man.conf representing the man search path for port: MANPATH /opt/local/man/man1 However, when I invoke man on its own: > man port I get the following error: No manual entry for port Is this the correct way to add a new search path for man? You’re very close. You should have added this: MANPATH /opt/local/man/ [...]
Continue Reading »No info manual for Pinfo
I have had a problem with Pinfo’s search in reading manuals. I believe that the following error message contains the suggestion to the solution. I get the following error message The same in text: przemek’s info viewer v0.6.9″ error: could not open info file, trying manual I have found unrelated links about the topic. They suggested that the problem may be in my INFOPATH: /sw/share/info:/sw/info:/usr/share/info The main problem is not in MacPorts. Thanks to dlamblin! [...]
Continue Reading »How can you see clearly process data from ps -u $user?
The question is based on this thread. Problem: to find an installation within the process data I would like to know how you can see from the following data that I have the updates of MacPorts’ ports going on. I run ps -u Sam I get UID PID TTY TIME CMD 501 79 ?? 0:15.95 /sbin/launchd 501 186 ?? 0:01.50 /Library/Google/Google Desktop/GoogleDesktopAgent.app/Contents/MacOS/GoogleDesktopAgent 501 188 ?? 0:01.14 /System/Library/CoreServices/AirPort Base Station Agent.app/Contents/MacOS/AirPort Base Station Agent -launchd -allowquit [...]
Continue Reading »


