{"id":113,"date":"2007-08-19T23:29:39","date_gmt":"2007-08-20T07:29:39","guid":{"rendered":"http:\/\/mlaaker.com\/cms\/?p=113"},"modified":"2007-11-21T00:06:48","modified_gmt":"2007-11-21T08:06:48","slug":"installing-the-adobe-air-sdk-on-a-mac","status":"publish","type":"post","link":"https:\/\/www.laaker.com\/micah\/blog\/2007\/installing-the-adobe-air-sdk-on-a-mac","title":{"rendered":"Installing the Adobe AIR SDK on a Mac"},"content":{"rendered":"<p>I recently attempted to install the <a href=\"http:\/\/www.adobe.com\/go\/air\">Adobe AIR<\/a> <a href=\"http:\/\/labs.adobe.com\/downloads\/airsdk.html\">SDK<\/a> on my MacBook Pro so that I could compile AIR applications. While Adobe&#8217;s done some great work at developing and exposing their tools early to the public, I could not find a set of instructions that resulted in a working installation. <\/p>\n<p>Luckily, Yahoo! Developer Network co-worker <a href=\"http:\/\/blog.unitedheroes.net\/\">JR Conlin<\/a> stepped up and helped me fill in a couple blanks. As such, I present my revision to the O&#8217;Reilly <a href=\"http:\/\/www.amazon.com\/dp\/0596515197?tag=0713m611l-20\">Adobe Integrated Runtime (AIR) for JavaScript Developers Pocket Guide<\/a> (by <a href=\"http:\/\/www.mikechambers.com\/blog\/\">Mike Chambers<\/a>, <a href=\"http:\/\/www.danieldura.com\/\">Daniel Dura<\/a>, &#038; <a href=\"http:\/\/blog.kevinhoyt.org\/\">Kevin Hoyt<\/a>)&#8230; particularly pages 27 and 28, Setting Up the AIR SDK and Command-LineTools:<\/p>\n<blockquote><p>\nThere are a number of ways to add the path to the AIR SDK to your system path, depending on which shell you are using, and how you specify user environment variables. <\/p>\n<p>The instructions below show how to modify your path environment variable if you are using the bash shell. <\/p>\n<ol>\n<li>Open the Terminal program (\/Applications\/Utilities\/Terminal) <\/li>\n<li>Make sure you&#8217;re in your home directory by typing\n<pre>cd<\/pre>\n<p> and pressing enter. <\/li>\n<li>We need to check to see if one of two files are present. Run the following command\n<pre>ls -la<\/pre>\n<\/li>\n<li>Look for a file named either.profile or.bashrc. <\/li>\n<li>If you have neither the .profile or .bashrc file, then create the .profile file with the following command:<br \/>\n touch .profile <\/li>\n<li>Open the .profile or .bashrc file with a text editor. <\/li>\n<li>Look for a line that looks similar to this:\n<pre>export PATH=$PATH:\/usr\/local\/bin<\/pre>\n<\/li>\n<li>Add the path to the <sdk_path>\/bindirectory to the end of this line. For example, if <\/sdk_path><sdk_path>\/bin is at \/airsdk\/bin, the export path should look something like this:\n<pre>export PATH=$PATH:\/usr\/local\/bin;\/airsdk\/bin<\/pre>\n<p>making sure to separate the entries with a colon.<\/sdk_path><\/li>\n<li>If the file is empty, add the following line:\n<pre>export PATH=$PATH:\/airsdk\/bin<\/pre>\n<\/li>\n<li>Save and close the file. <\/li>\n<\/ol>\n<\/blockquote>\n<p><em>Insert:<\/em> Quit Terminal (and other applications), and restart your Mac. (If you don&#8217;t restart your Mac, your Terminal application won&#8217;t recognize the changes.)<\/p>\n<blockquote>\n<ol start=\"11\">\n<li>Run the following command to load the new settings source,\n<pre>.profile<\/pre>\n<p> (or <\/p>\n<pre>.bashrc<\/pre>\n<p>, if that is the file you edited). <\/li>\n<\/ol>\n<\/blockquote>\n<p><em>Revise item #11:<\/em> Run the following command to load the new settings source, <\/p>\n<pre>. .profile<\/pre>\n<p> (or <\/p>\n<pre>. .bashrc<\/pre>\n<p>, if that is the file you edited).<\/p>\n<blockquote>\n<ol start=\"12\">\n<li>You can confirm that the new settings have taken effect by typing\n<pre>echo $PATH<\/pre>\n<p> and pressing Enter. Make sure that the<\/p>\n<pre><sdk_path>\/bin<\/sdk_path><\/pre>\n<p> path is included in the output. <\/li>\n<li>In order to test the installation, open a Terminal window and type\n<pre>adt<\/pre>\n<p>.<br \/> <br \/>\nYou should see output similar this: <\/p>\n<pre>Too few arguments.<br \/>\r\nUsage: adt -package air_file app_xml [ file_or_dir | -C dir file_or_dir ... ] ... <\/pre>\n<p>meaning that the tools are configured correctly. <\/li>\n<\/ol>\n<p>If you get an error that the file cannot be found, then check the following things: <\/p>\n<ul>\n<li>Make sure the bin and runtime directories are included in the\n<pre><sdk_path><\/sdk_path><\/pre>\n<p> directory.<\/li>\n<li>Make sure you included the path to\n<pre><sdk_path>\/bin<\/sdk_path><\/pre>\n<p> correctly in the PATH environment variable.<\/li>\n<li>Make sure you either opened a new Terminal window, or ran source on your configuration file.<\/li>\n<\/ul>\n<\/blockquote>\n<p>If this works for you, too (or, if it does not), drop me a line in the Comments section. I will try to keep this updated as I hear from folks. Having <a href=\"http:\/\/onair.adobe.com\/schedule\/cities\/atlanta.php\">recently spoke at the Atlanta stop<\/a> of the OnAir tour, I can attest that developers are building exciting things with AIR&#8230; hopefully this will help a few others join those legions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently attempted to install the Adobe AIR SDK on my MacBook Pro so that I could compile AIR applications. While Adobe&#8217;s done some great work at developing and exposing their tools early to the public, I could not find a set of instructions that resulted in a working installation. Luckily, Yahoo! Developer Network co-worker [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[41,42,44,31,43,32],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-blog","tag-adobe","tag-air","tag-installation","tag-mac","tag-sdk","tag-software"],"_links":{"self":[{"href":"https:\/\/www.laaker.com\/micah\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laaker.com\/micah\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laaker.com\/micah\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laaker.com\/micah\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laaker.com\/micah\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/www.laaker.com\/micah\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.laaker.com\/micah\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laaker.com\/micah\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laaker.com\/micah\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}