{"id":699,"date":"2007-04-22T15:16:20","date_gmt":"2007-04-22T23:16:20","guid":{"rendered":"http:\/\/www.wiredatom.com\/blog\/2007\/04\/22\/upgrading-pear-on-mac-osx-tiger\/"},"modified":"2007-04-22T15:17:24","modified_gmt":"2007-04-22T23:17:24","slug":"upgrading-pear-on-mac-osx-tiger","status":"publish","type":"post","link":"https:\/\/www.wiredatom.com\/blog\/2007\/04\/22\/upgrading-pear-on-mac-osx-tiger\/","title":{"rendered":"Upgrading PEAR on Mac OSX Tiger"},"content":{"rendered":"<p>It&#8217;s annoying sometimes having to upgrade or install opensource applications on Mac OSX. Yes, it&#8217;s BSD Unix, but it&#8217;s not quite Linux when it comes to raw package management from command prompts and how some applications assume you are installing it on Linux. On my fresh install of Tiger, I was having some issues upgrade PEAR. Because it&#8217;s not really documented anywhere, here&#8217;s how I did it:<\/p>\n<blockquote><p>\n1. Follow the <a href=\"http:\/\/pear.php.net\/news\/package.xml.1.0.php\" target=\"_blank\">upgrade instruction<\/a> on PEAR&#8217;s official website.<\/p>\n<p>2. Once PEAR is upgraded, issuing<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">$: pear -V<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>from the command prompt should still give you an old version of PEAR as such:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">PEAR Version: 1.3.6<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>3. To fix that, find out where the current version of PEAR is by issuing:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">$: which pear<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>It should return:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">$: \/usr\/bin\/pear<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>4. Then find out where the upgraded PEAR went by issuing:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">$: pear config-show<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Look for:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">PEAR executables directory &nbsp; bin_dir<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>In my case, it resides in where PHP5 is at:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">PEAR executables directory &nbsp; bin_dir &nbsp; \/usr\/local\/php5\/bin<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>5. Next I make a symbolic link to it from where<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">\/usr\/bin\/pear<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>is:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">$: mv \/usr\/bin\/pear \/usr\/bin\/pear.old<br \/>\n$: sudo ln -s \/usr\/local\/php5\/bin\/pear pear<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>6. Do another<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">$: pear -V<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>and it should now show the proper version:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">PEAR Version: 1.5.3<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s annoying sometimes having to upgrade or install opensource applications on Mac OSX. Yes, it&#8217;s BSD Unix, but it&#8217;s not quite Linux when it comes to raw package management from command prompts and how some applications assume you are installing it on Linux. On my fresh install of Tiger, I was having some issues upgrade &hellip; <a href=\"https:\/\/www.wiredatom.com\/blog\/2007\/04\/22\/upgrading-pear-on-mac-osx-tiger\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Upgrading PEAR on Mac OSX Tiger&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10,3],"tags":[],"class_list":["post-699","post","type-post","status-publish","format-standard","hentry","category-geek-stuff","category-mac-osx"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p54IqZ-bh","_links":{"self":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/comments?post=699"}],"version-history":[{"count":0,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/699\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/media?parent=699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/categories?post=699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/tags?post=699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}