Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
This is really a saga and I have a bone to pick w/Mac or anyone for that matter that writes procedures Now after getting command line tools installed which enabled "make" to work, and downloading & un-taring the c-client, whoa, now ./configure doesn't work... humm oh Apple also pulled out "autoconf", humm more downloads and setup just to enable php_imap, which was "PULLED" out of PHP to work as it should. Okay bone to pick w/anyone who writes something that begins, How to Add/Do "ABC" Title: How to Add "ABC" Overview: What & why you would might want to do this and why you may have to do this if you need to do "X". Prerequisites: NOT only things you should have, but for a novice, simple yet comprehensive "checks" to verify that those components exist. Don't expect a novice to see a rudimentary command and have a way to check if its there or even question if it is or isn't. What if cp (copy in Mac) were not there or "mkdir"? Would anyone/novice think to check or how to check first, or how to correct? For example on the MacPorts website it says you must have among other things, X11, but there's no suggested check to verify that you do, how would a novice know to check? Also, for experienced folks, a quick check to see if essential components are present and how they're configured/enabled or not. I've seen many experienced techs get to points in a process only to find that things aren't working as they should because of prerequisites. Component name: Click "here" to verify you have this installed/enabled and how to do so if you don't. Bone picking over, you can go back to to regular endeavors JeffP... "Slith" wrote in message news:699a31fc-1bec-4e2b-b09c-0c75d9d26...@gmail.com... save yourself the trouble and setup a virtualized Linux box using Vagrant http://vagrantup.com. I think this is the way to go on Mac. On Jul 31, 2012, at 6:34 PM, tamouse mailing lists wrote: > Ugh. This is why I no longer want an apple computer. > > On Jul 31, 2012 8:26 AM, "JeffPGMT" wrote: >> >> AGAIN - THANKS TO ALL... >> >> IT installed XCode, here's another? command line tools sans XCode > available >> from Kenneth's github, >> https://github.com/kennethreitz/osx-gcc-installer >> >> However another irony, now that XCode is installed, in the new XCode 4.4 >> command line tools are not installed by default, so I found my way to >> Preferences, Downloads, Command Line tools Install checkbox... it's >> downloading (similar to watching paint dry) >> >> JeffP... >> >> "Simon J Welsh" wrote in message >> news:2a4921bf-db43-464b-8bbe-5ea1e3665...@simon.geek.nz... >> On 31/07/2012, at 10:54 PM, Jason Pruim > wrote: >>> On Jul 30, 2012, at 12:01 PM, "JeffPGMT" wrote: >>> Thanks All, now I have to tell the business owner to let the IT guy update to 10.8 if he likes, which will buy me time to sort out all of what you folks contributed. I wasn't aware that Mamp free installed anything more than basic and > Yes, setup so that Apache, MySql and PHP work well together was what I had wanted to learn using the stock install and was able to do w/exception of imap being available. Perhaps I will install XCode as it's the law of worst case probably > will occur if I don't, that is I'll need it in a pinch later on. JeffPGMT... >>> >>> Hey Jeff, >>> >>> Unless its changed in mt lion, you will need to install Xcode to use > make >>> or any other program assembler... >>> O >> >> You can download just the command line tools from >> https://developer.apple.com/downloads, which is ~100 MB instead of a > couple >> of gigs. Has been like this for some time now. You just have to be >> careful >> with some older code not compiling properly with LLVM. >> --- >> Simon Welsh >> Admin of http://simon.geek.nz/ >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
save yourself the trouble and setup a virtualized Linux box using Vagrant http://vagrantup.com. I think this is the way to go on Mac. On Jul 31, 2012, at 6:34 PM, tamouse mailing lists wrote: > Ugh. This is why I no longer want an apple computer. > > On Jul 31, 2012 8:26 AM, "JeffPGMT" wrote: >> >> AGAIN - THANKS TO ALL... >> >> IT installed XCode, here's another? command line tools sans XCode > available >> from Kenneth's github, >> https://github.com/kennethreitz/osx-gcc-installer >> >> However another irony, now that XCode is installed, in the new XCode 4.4 >> command line tools are not installed by default, so I found my way to >> Preferences, Downloads, Command Line tools Install checkbox... it's >> downloading (similar to watching paint dry) >> >> JeffP... >> >> "Simon J Welsh" wrote in message >> news:2a4921bf-db43-464b-8bbe-5ea1e3665...@simon.geek.nz... >> On 31/07/2012, at 10:54 PM, Jason Pruim > wrote: >>> On Jul 30, 2012, at 12:01 PM, "JeffPGMT" wrote: >>> Thanks All, now I have to tell the business owner to let the IT guy update to 10.8 if he likes, which will buy me time to sort out all of what you folks contributed. I wasn't aware that Mamp free installed anything more than basic and > Yes, setup so that Apache, MySql and PHP work well together was what I had wanted to learn using the stock install and was able to do w/exception of imap being available. Perhaps I will install XCode as it's the law of worst case probably > will occur if I don't, that is I'll need it in a pinch later on. JeffPGMT... >>> >>> Hey Jeff, >>> >>> Unless its changed in mt lion, you will need to install Xcode to use > make >>> or any other program assembler... >>> O >> >> You can download just the command line tools from >> https://developer.apple.com/downloads, which is ~100 MB instead of a > couple >> of gigs. Has been like this for some time now. You just have to be careful >> with some older code not compiling properly with LLVM. >> --- >> Simon Welsh >> Admin of http://simon.geek.nz/ >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
Ugh. This is why I no longer want an apple computer. On Jul 31, 2012 8:26 AM, "JeffPGMT" wrote: > > AGAIN - THANKS TO ALL... > > IT installed XCode, here's another? command line tools sans XCode available > from Kenneth's github, > https://github.com/kennethreitz/osx-gcc-installer > > However another irony, now that XCode is installed, in the new XCode 4.4 > command line tools are not installed by default, so I found my way to > Preferences, Downloads, Command Line tools Install checkbox... it's > downloading (similar to watching paint dry) > > JeffP... > > "Simon J Welsh" wrote in message > news:2a4921bf-db43-464b-8bbe-5ea1e3665...@simon.geek.nz... > On 31/07/2012, at 10:54 PM, Jason Pruim wrote: > > On Jul 30, 2012, at 12:01 PM, "JeffPGMT" wrote: > > > >> Thanks All, now I have to tell the business owner to let the IT guy > >> update > >> to 10.8 if he likes, which will buy me time to sort out all of what you > >> folks contributed. > >> > >> I wasn't aware that Mamp free installed anything more than basic and Yes, > >> setup so that Apache, MySql and PHP work well together was what I had > >> wanted > >> to learn using the stock install and was able to do w/exception of imap > >> being available. > >> > >> Perhaps I will install XCode as it's the law of worst case probably will > >> occur if I don't, that is I'll need it in a pinch later on. > >> > >> JeffPGMT... > >> > > > > Hey Jeff, > > > > Unless its changed in mt lion, you will need to install Xcode to use make > > or any other program assembler... > > O > > You can download just the command line tools from > https://developer.apple.com/downloads, which is ~100 MB instead of a couple > of gigs. Has been like this for some time now. You just have to be careful > with some older code not compiling properly with LLVM. > --- > Simon Welsh > Admin of http://simon.geek.nz/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
AGAIN - THANKS TO ALL... IT installed XCode, here's another? command line tools sans XCode available from Kenneth's github, https://github.com/kennethreitz/osx-gcc-installer However another irony, now that XCode is installed, in the new XCode 4.4 command line tools are not installed by default, so I found my way to Preferences, Downloads, Command Line tools Install checkbox... it's downloading (similar to watching paint dry) JeffP... "Simon J Welsh" wrote in message news:2a4921bf-db43-464b-8bbe-5ea1e3665...@simon.geek.nz... On 31/07/2012, at 10:54 PM, Jason Pruim wrote: > On Jul 30, 2012, at 12:01 PM, "JeffPGMT" wrote: > >> Thanks All, now I have to tell the business owner to let the IT guy >> update >> to 10.8 if he likes, which will buy me time to sort out all of what you >> folks contributed. >> >> I wasn't aware that Mamp free installed anything more than basic and Yes, >> setup so that Apache, MySql and PHP work well together was what I had >> wanted >> to learn using the stock install and was able to do w/exception of imap >> being available. >> >> Perhaps I will install XCode as it's the law of worst case probably will >> occur if I don't, that is I'll need it in a pinch later on. >> >> JeffPGMT... >> > > Hey Jeff, > > Unless its changed in mt lion, you will need to install Xcode to use make > or any other program assembler... > O You can download just the command line tools from https://developer.apple.com/downloads, which is ~100 MB instead of a couple of gigs. Has been like this for some time now. You just have to be careful with some older code not compiling properly with LLVM. --- Simon Welsh Admin of http://simon.geek.nz/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
On 31/07/2012, at 10:54 PM, Jason Pruim wrote: > On Jul 30, 2012, at 12:01 PM, "JeffPGMT" wrote: > >> Thanks All, now I have to tell the business owner to let the IT guy update >> to 10.8 if he likes, which will buy me time to sort out all of what you >> folks contributed. >> >> I wasn't aware that Mamp free installed anything more than basic and Yes, >> setup so that Apache, MySql and PHP work well together was what I had wanted >> to learn using the stock install and was able to do w/exception of imap >> being available. >> >> Perhaps I will install XCode as it's the law of worst case probably will >> occur if I don't, that is I'll need it in a pinch later on. >> >> JeffPGMT... >> > > Hey Jeff, > > Unless its changed in mt lion, you will need to install Xcode to use make or > any other program assembler... > O You can download just the command line tools from https://developer.apple.com/downloads, which is ~100 MB instead of a couple of gigs. Has been like this for some time now. You just have to be careful with some older code not compiling properly with LLVM. --- Simon Welsh Admin of http://simon.geek.nz/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
On Jul 30, 2012, at 12:01 PM, "JeffPGMT" wrote: > Thanks All, now I have to tell the business owner to let the IT guy update > to 10.8 if he likes, which will buy me time to sort out all of what you > folks contributed. > > I wasn't aware that Mamp free installed anything more than basic and Yes, > setup so that Apache, MySql and PHP work well together was what I had wanted > to learn using the stock install and was able to do w/exception of imap > being available. > > Perhaps I will install XCode as it's the law of worst case probably will > occur if I don't, that is I'll need it in a pinch later on. > > JeffPGMT... > Hey Jeff, Unless its changed in mt lion, you will need to install Xcode to use make or any other program assembler... O -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
Thanks All, now I have to tell the business owner to let the IT guy update to 10.8 if he likes, which will buy me time to sort out all of what you folks contributed. I wasn't aware that Mamp free installed anything more than basic and Yes, setup so that Apache, MySql and PHP work well together was what I had wanted to learn using the stock install and was able to do w/exception of imap being available. Perhaps I will install XCode as it's the law of worst case probably will occur if I don't, that is I'll need it in a pinch later on. JeffPGMT... "David OBrien" wrote in message news:CAF=yd_1xyjffs_5cey36n9xqzwip2ok8mp7dy-xsvt0zht-...@mail.gmail.com... > On Mon, Jul 30, 2012 at 10:21 AM, JeffPGMT wrote: > >> Tamara, I said dll, but that was only my ignorant/windows reference to a >> system lib/bin file. I followed a blog post (bitly'ed below); I got as >> far >> as un-tar'ing and "make" was not available. >> >> I have other stacks Xampp (beta for Mac not for production) and is used >> by >> many folks w/out issue, however this is a production system, hence my >> wonderment & frustration as to why IMAP was "removed" by Apple and not a >> dev >> box for me to install 3rd party tools and have an issue with our IT. I >> also >> considered MAMP or FastStack, however that meant there are two installs >> of >> both Apache & PHP. I did a test and put the preinstalled stuff on port >> 8080. >> But, I thought, It's a server OS, why not use what came installed? And >> that >> was one of my original questions alluding to perhaps IMAP was installed >> but >> turned off at some not so obvious point just waiting to be restored. >> >> I originally sent the following as a PM to TR Shaw... The OS is 10.7 Lion >> Server! (I'm really emphisising server, because when I presented my >> situation to our IT and a call to Apple I was told that it was there! By >> the end of the call Apple said, sorry (after a nearly 20min hold, suppose >> he >> asked someone more experienced) and my IT said, hey let's just try the >> new >> 10.8 maybe that will fix it? I realized I was dealing with an very >> experienced Mac IT person who really didn't know. >> >> I read the instructions on adding c-client 2007, but "make" is an invalid >> cmd, apparently that's pulled by Apple too; is there a way to add >> php_IMAP >> w/out? I got as far as downloading & un-tar, but failed at make >> osx...filename... >> http://bit.ly/JWre51 >> >> TRShaw: What/Where/Why is the path /etc/intl ? >> >> I'm not familiar w/Mac, what are steps 3 & 4? >> >> And lastly I'm reluctant to install "XCode" or MacPorts because, I'm not >> IT >> and this is not a dev box. I think that these are the responsibility of >> IT, >> who manages the server desktops & network. I really just want to drop my >> program in and run away :) >> >> JeffPGMT >> >> "TR Shaw" wrote in message >> news:c512aca8-a6ed-45e9-873f-c0e72dd9e...@oitc.com... >> Actually, adding extensions (even normally bundled ones) to the stock >> Snow >> Leopard PHP is quite easy: >> >> 1) Download the source tarball of php and unpack it >> >> 2) cd into ext/name_of_the_extension (like ext/intl in your case) >> >> 3) run phpize >> >> 4) run ./configure with appropriate flags >> >> 5) make install >> >> Then you just enable the freshly built .so file in your php.ini and you >> are >> done. >> >> On Jul 28, 2012, at 12:25 AM, Tamara Temple wrote: >> >> > JeffPGMT wrote: >> >> Please correct me if I'm wrong and IMAP is available (maybe a known >> >> config >> >> issue?) >> >> >> >> Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not >> >> installed, >> >> pulled out my Apple for this server OS. >> > >> > I don't know if it is, but something below seems very odd to me: >> > >> >> $ php -v >> >> PHP Warning: PHP Startup: Unable to load dynamic library >> >> '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - >> >> dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, >> >> 9): >> >> image not found in Unknown on line 0 >> > >> > I might be wrong here on 10.7, as I haven't even migrated off 10.5, >> > but, >> > I've never seen a .dll file on a mac -- they're windows dynamic link >> > libraries. I think somehow things are little messed up there... >> > >> > Someone has suggested installing MAMP, which is a much better solution >> > in general that what Apple supplies. The issue is knowing which you're >> > running at any point in time, which for most things, MAMP will handle >> > correctly. But it may not be the case for command line execution as >> > you've shown above. >> > >> > -- >> > PHP General Mailing List (http://www.php.net/) >> > To unsubscribe, visit: http://www.php.net/unsub.php >> > >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > I just installed the latest MAMP on my MacMini running Mt. Lion ... imap > is > installed and enabled by default > It also includes 3 v
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
On Mon, Jul 30, 2012 at 10:21 AM, JeffPGMT wrote: > Tamara, I said dll, but that was only my ignorant/windows reference to a > system lib/bin file. I followed a blog post (bitly'ed below); I got as far > as un-tar'ing and "make" was not available. > > I have other stacks Xampp (beta for Mac not for production) and is used by > many folks w/out issue, however this is a production system, hence my > wonderment & frustration as to why IMAP was "removed" by Apple and not a > dev > box for me to install 3rd party tools and have an issue with our IT. I > also > considered MAMP or FastStack, however that meant there are two installs of > both Apache & PHP. I did a test and put the preinstalled stuff on port > 8080. > But, I thought, It's a server OS, why not use what came installed? And that > was one of my original questions alluding to perhaps IMAP was installed but > turned off at some not so obvious point just waiting to be restored. > > I originally sent the following as a PM to TR Shaw... The OS is 10.7 Lion > Server! (I'm really emphisising server, because when I presented my > situation to our IT and a call to Apple I was told that it was there! By > the end of the call Apple said, sorry (after a nearly 20min hold, suppose > he > asked someone more experienced) and my IT said, hey let's just try the new > 10.8 maybe that will fix it? I realized I was dealing with an very > experienced Mac IT person who really didn't know. > > I read the instructions on adding c-client 2007, but "make" is an invalid > cmd, apparently that's pulled by Apple too; is there a way to add php_IMAP > w/out? I got as far as downloading & un-tar, but failed at make > osx...filename... > http://bit.ly/JWre51 > > TRShaw: What/Where/Why is the path /etc/intl ? > > I'm not familiar w/Mac, what are steps 3 & 4? > > And lastly I'm reluctant to install "XCode" or MacPorts because, I'm not IT > and this is not a dev box. I think that these are the responsibility of IT, > who manages the server desktops & network. I really just want to drop my > program in and run away :) > > JeffPGMT > > "TR Shaw" wrote in message > news:c512aca8-a6ed-45e9-873f-c0e72dd9e...@oitc.com... > Actually, adding extensions (even normally bundled ones) to the stock Snow > Leopard PHP is quite easy: > > 1) Download the source tarball of php and unpack it > > 2) cd into ext/name_of_the_extension (like ext/intl in your case) > > 3) run phpize > > 4) run ./configure with appropriate flags > > 5) make install > > Then you just enable the freshly built .so file in your php.ini and you are > done. > > On Jul 28, 2012, at 12:25 AM, Tamara Temple wrote: > > > JeffPGMT wrote: > >> Please correct me if I'm wrong and IMAP is available (maybe a known > >> config > >> issue?) > >> > >> Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not > >> installed, > >> pulled out my Apple for this server OS. > > > > I don't know if it is, but something below seems very odd to me: > > > >> $ php -v > >> PHP Warning: PHP Startup: Unable to load dynamic library > >> '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - > >> dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, > >> 9): > >> image not found in Unknown on line 0 > > > > I might be wrong here on 10.7, as I haven't even migrated off 10.5, but, > > I've never seen a .dll file on a mac -- they're windows dynamic link > > libraries. I think somehow things are little messed up there... > > > > Someone has suggested installing MAMP, which is a much better solution > > in general that what Apple supplies. The issue is knowing which you're > > running at any point in time, which for most things, MAMP will handle > > correctly. But it may not be the case for command line execution as > > you've shown above. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I just installed the latest MAMP on my MacMini running Mt. Lion ... imap is installed and enabled by default It also includes 3 versions of php out of the box Davids-Mac-mini:~ dgobrien$ ls /Applications/MAMP/bin/php/ php5.2.17/ php5.3.14/ php5.4.4/ Davids-Mac-mini:~ dgobrien$ /Applications/MAMP/bin/php/php5.4.4/bin/php-cgi -m [PHP Modules] bcmath bz2 calendar cgi-fcgi Core ctype curl date dom ereg exif fileinfo filter ftp gd gettext hash iconv imap json ldap libxml mbstring mcrypt mysql mysqli openssl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix Reflection session SimpleXML soap sockets SPL sqlite3 standard tokenizer XCache xml xmlreader xmlwriter xsl yaz zip zlib [Zend Modules] XCache Should be trivial to add that executable to your path for command line stuff
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
To tell what you have on your Mac (server or not) open terminal and type: php -i This will tell you the configuration of the php installed. The imap php extension is not installed by Apple so you have a couple of choices as I said. The one I use can be found at and installs itself: http://php-osx.liip.ch/ It installs the latest php with the extensions bcmath bz2 calendar Core ctype curl date dom dtrace ereg exif fileinfo filter ftp gd gettext hash iconv imap intl json ldap libxml mbstring mcrypt memcache memcached mhash mongo mssql mysql mysqli mysqlnd OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix Reflection session shmop SimpleXML soap sockets solr SPL SQLite sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer uploadprogress wddx xdebug xhprof xml xmlreader xmlrpc xmlwriter xsl zip zlib Xdebug. Available but disabled by default: apc, xslcache, twig It enables itself in apache. If you need to run it as CLI use the following on the command line: /usr/local/php5/bin/php or setup you PATH variable. Tom PS make, configure are all unix/linux development tools. On Jul 30, 2012, at 10:21 AM, JeffPGMT wrote: > Tamara, I said dll, but that was only my ignorant/windows reference to a > system lib/bin file. I followed a blog post (bitly'ed below); I got as far > as un-tar'ing and "make" was not available. > > I have other stacks Xampp (beta for Mac not for production) and is used by > many folks w/out issue, however this is a production system, hence my > wonderment & frustration as to why IMAP was "removed" by Apple and not a dev > box for me to install 3rd party tools and have an issue with our IT. I also > considered MAMP or FastStack, however that meant there are two installs of > both Apache & PHP. I did a test and put the preinstalled stuff on port 8080. > But, I thought, It's a server OS, why not use what came installed? And that > was one of my original questions alluding to perhaps IMAP was installed but > turned off at some not so obvious point just waiting to be restored. > > I originally sent the following as a PM to TR Shaw... The OS is 10.7 Lion > Server! (I'm really emphisising server, because when I presented my > situation to our IT and a call to Apple I was told that it was there! By > the end of the call Apple said, sorry (after a nearly 20min hold, suppose he > asked someone more experienced) and my IT said, hey let's just try the new > 10.8 maybe that will fix it? I realized I was dealing with an very > experienced Mac IT person who really didn't know. > > I read the instructions on adding c-client 2007, but "make" is an invalid > cmd, apparently that's pulled by Apple too; is there a way to add php_IMAP > w/out? I got as far as downloading & un-tar, but failed at make > osx...filename... > http://bit.ly/JWre51 > > TRShaw: What/Where/Why is the path /etc/intl ? > > I'm not familiar w/Mac, what are steps 3 & 4? > > And lastly I'm reluctant to install "XCode" or MacPorts because, I'm not IT > and this is not a dev box. I think that these are the responsibility of IT, > who manages the server desktops & network. I really just want to drop my > program in and run away :) > > JeffPGMT > > "TR Shaw" wrote in message > news:c512aca8-a6ed-45e9-873f-c0e72dd9e...@oitc.com... > Actually, adding extensions (even normally bundled ones) to the stock Snow > Leopard PHP is quite easy: > > 1) Download the source tarball of php and unpack it > > 2) cd into ext/name_of_the_extension (like ext/intl in your case) > > 3) run phpize > > 4) run ./configure with appropriate flags > > 5) make install > > Then you just enable the freshly built .so file in your php.ini and you are > done. > > On Jul 28, 2012, at 12:25 AM, Tamara Temple wrote: > >> JeffPGMT wrote: >>> Please correct me if I'm wrong and IMAP is available (maybe a known >>> config >>> issue?) >>> >>> Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not >>> installed, >>> pulled out my Apple for this server OS. >> >> I don't know if it is, but something below seems very odd to me: >> >>> $ php -v >>> PHP Warning: PHP Startup: Unable to load dynamic library >>> '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - >>> dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, >>> 9): >>> image not found in Unknown on line 0 >> >> I might be wrong here on 10.7, as I haven't even migrated off 10.5, but, >> I've never seen a .dll file on a mac -- they're windows dynamic link >> libraries. I think somehow things are little messed up there... >> >> Someone has suggested installing MAMP, which is a much better solution >> in general that what Apple supplies. The issue is knowing which you're >> running at any point in time, which for most things, MAMP will handle >> correctly. But it may not be the case for command line execution as >> you've shown above. >> >> -- >> PHP General Mailing List (http://www.ph
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
Tamara, I said dll, but that was only my ignorant/windows reference to a system lib/bin file. I followed a blog post (bitly'ed below); I got as far as un-tar'ing and "make" was not available. I have other stacks Xampp (beta for Mac not for production) and is used by many folks w/out issue, however this is a production system, hence my wonderment & frustration as to why IMAP was "removed" by Apple and not a dev box for me to install 3rd party tools and have an issue with our IT. I also considered MAMP or FastStack, however that meant there are two installs of both Apache & PHP. I did a test and put the preinstalled stuff on port 8080. But, I thought, It's a server OS, why not use what came installed? And that was one of my original questions alluding to perhaps IMAP was installed but turned off at some not so obvious point just waiting to be restored. I originally sent the following as a PM to TR Shaw... The OS is 10.7 Lion Server! (I'm really emphisising server, because when I presented my situation to our IT and a call to Apple I was told that it was there! By the end of the call Apple said, sorry (after a nearly 20min hold, suppose he asked someone more experienced) and my IT said, hey let's just try the new 10.8 maybe that will fix it? I realized I was dealing with an very experienced Mac IT person who really didn't know. I read the instructions on adding c-client 2007, but "make" is an invalid cmd, apparently that's pulled by Apple too; is there a way to add php_IMAP w/out? I got as far as downloading & un-tar, but failed at make osx...filename... http://bit.ly/JWre51 TRShaw: What/Where/Why is the path /etc/intl ? I'm not familiar w/Mac, what are steps 3 & 4? And lastly I'm reluctant to install "XCode" or MacPorts because, I'm not IT and this is not a dev box. I think that these are the responsibility of IT, who manages the server desktops & network. I really just want to drop my program in and run away :) JeffPGMT "TR Shaw" wrote in message news:c512aca8-a6ed-45e9-873f-c0e72dd9e...@oitc.com... Actually, adding extensions (even normally bundled ones) to the stock Snow Leopard PHP is quite easy: 1) Download the source tarball of php and unpack it 2) cd into ext/name_of_the_extension (like ext/intl in your case) 3) run phpize 4) run ./configure with appropriate flags 5) make install Then you just enable the freshly built .so file in your php.ini and you are done. On Jul 28, 2012, at 12:25 AM, Tamara Temple wrote: > JeffPGMT wrote: >> Please correct me if I'm wrong and IMAP is available (maybe a known >> config >> issue?) >> >> Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not >> installed, >> pulled out my Apple for this server OS. > > I don't know if it is, but something below seems very odd to me: > >> $ php -v >> PHP Warning: PHP Startup: Unable to load dynamic library >> '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - >> dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, >> 9): >> image not found in Unknown on line 0 > > I might be wrong here on 10.7, as I haven't even migrated off 10.5, but, > I've never seen a .dll file on a mac -- they're windows dynamic link > libraries. I think somehow things are little messed up there... > > Someone has suggested installing MAMP, which is a much better solution > in general that what Apple supplies. The issue is knowing which you're > running at any point in time, which for most things, MAMP will handle > correctly. But it may not be the case for command line execution as > you've shown above. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
Actually, adding extensions (even normally bundled ones) to the stock Snow Leopard PHP is quite easy: 1) Download the source tarball of php and unpack it 2) cd into ext/name_of_the_extension (like ext/intl in your case) 3) run phpize 4) run ./configure with appropriate flags 5) make install Then you just enable the freshly built .so file in your php.ini and you are done. On Jul 28, 2012, at 12:25 AM, Tamara Temple wrote: > JeffPGMT wrote: >> Please correct me if I'm wrong and IMAP is available (maybe a known config >> issue?) >> >> Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not installed, >> pulled out my Apple for this server OS. > > I don't know if it is, but something below seems very odd to me: > >> $ php -v >> PHP Warning: PHP Startup: Unable to load dynamic library >> '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - >> dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, 9): >> image not found in Unknown on line 0 > > I might be wrong here on 10.7, as I haven't even migrated off 10.5, but, > I've never seen a .dll file on a mac -- they're windows dynamic link > libraries. I think somehow things are little messed up there... > > Someone has suggested installing MAMP, which is a much better solution > in general that what Apple supplies. The issue is knowing which you're > running at any point in time, which for most things, MAMP will handle > correctly. But it may not be the case for command line execution as > you've shown above. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
JeffPGMT wrote: > Please correct me if I'm wrong and IMAP is available (maybe a known config > issue?) > > Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not installed, > pulled out my Apple for this server OS. I don't know if it is, but something below seems very odd to me: > $ php -v > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - > dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, 9): > image not found in Unknown on line 0 I might be wrong here on 10.7, as I haven't even migrated off 10.5, but, I've never seen a .dll file on a mac -- they're windows dynamic link libraries. I think somehow things are little messed up there... Someone has suggested installing MAMP, which is a much better solution in general that what Apple supplies. The issue is knowing which you're running at any point in time, which for most things, MAMP will handle correctly. But it may not be the case for command line execution as you've shown above. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
Look for software called mamp. It's independent installs of apache, MySQL, php, all for the mac.. They might have it enabled with what you need... I can tell you though if you can handle writing php code.. Installing with the developer tools is a piece of cake :) its not as hard as it sounds.. Lots of examples on the net for what need to be put into the command line. Jason Pruim On Jul 27, 2012, at 3:56 PM, "JeffPGMT" wrote: > Please correct me if I'm wrong and IMAP is available (maybe a known config > issue?) > > Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not installed, > pulled out my Apple for this server OS. > > $ php -v > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - > dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, 9): > image not found in Unknown on line 0 > PHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 20 2012 22:55:53) > Copyright (c) 1997-2012 The PHP Group > Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies > > Because Mac choose to not include "make" or IMAP (c-client 2007e or f) > support in the pre-installed PHP... > > Can I install PHP into another folder and then copy it over the > pre-installed location/folder? > > As I understand it "Make" requires the developer tools which I'm reluctant > to install as I'm not IT and this is not a dev box. > > So, where can I find a version of PHP that does not require "make" which is > not included in 10.7 nor to my knowledge 10.8? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
Hi, In my experience there are 2 ways of installing php, conpile or download a package for your OS that already been built. On windows, you can build php or you download a msi/exe file and use that to install it Linux, you can use yum or apt-get to install php or you can compile it. Regarding macs, I'm not too sure on that one, all I know that you can get php on it. I know that this won't be much help but just sharing my experience with getting php installed. Regards, Daniel Fenn On Sat, Jul 28, 2012 at 5:56 AM, JeffPGMT wrote: > Please correct me if I'm wrong and IMAP is available (maybe a known config > issue?) > > Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not installed, > pulled out my Apple for this server OS. > > $ php -v > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - > dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, 9): > image not found in Unknown on line 0 > PHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 20 2012 22:55:53) > Copyright (c) 1997-2012 The PHP Group > Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies > > Because Mac choose to not include "make" or IMAP (c-client 2007e or f) > support in the pre-installed PHP... > > Can I install PHP into another folder and then copy it over the > pre-installed location/folder? > > As I understand it "Make" requires the developer tools which I'm reluctant > to install as I'm not IT and this is not a dev box. > > So, where can I find a version of PHP that does not require "make" which is > not included in 10.7 nor to my knowledge 10.8? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
Please correct me if I'm wrong and IMAP is available (maybe a known config issue?) Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not installed, pulled out my Apple for this server OS. $ php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, 9): image not found in Unknown on line 0 PHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 20 2012 22:55:53) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies Because Mac choose to not include "make" or IMAP (c-client 2007e or f) support in the pre-installed PHP... Can I install PHP into another folder and then copy it over the pre-installed location/folder? As I understand it "Make" requires the developer tools which I'm reluctant to install as I'm not IT and this is not a dev box. So, where can I find a version of PHP that does not require "make" which is not included in 10.7 nor to my knowledge 10.8? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php