Hi Sarah and Dónal,

First of all, both MacPorts and HomeBrew require that you install XCode -- 
specifically, now you'll need to manually install the XCode command line tools 
when you do the XCode installation. This need to explicitly install the XCode 
command-line tools is something that changed starting with XCode version 4.3 
(released by Apple in February 2012, and run as an app instead of an 
installer), so if Sarah is reading instructions written up for earlier 
installations of MacPorts or, for that matter, of HomeBrew, she won't find the 
information needed for how to do this.  Both HomeBrew and MacPorts are command 
line package managers that allow you to download, install, configure, and 
remove additional software for your Mac that you can run from the Terminal 
command line.  The "package management" aspect means that HomeBrew and MacPorts 
will automatically check for dependencies -- so that if the software package 
you need to install requires a certain language compiler in order to run, and 
that compiler is not on your system, the package manager will get that as well. 

I suspect Dónal is using his developer's account to access XCode and other 
resources, but it's also possible to download this from the Mac App Store:
https://itunes.apple.com/us/app/xcode/id497799835?mt=12

In earlier versions of HomeBrew (before XCode version 4.3), you didn't need to 
be aware that you were installing XCode because the procedure for installing 
the command line tools as part of the package was automatic.  Now, however, any 
package manager that uses the command line tools -- and that includes both 
HomeBrew and MacPorts -- requires you to either do this installation explicitly 
or alternatively, if you are registered for a developer account, you can 
download just the command line tools for XCode without having to do the full 
XCode installation.  Here's the current link for Mountain Lion:
https://developer.apple.com/downloads/index.action?=Command%20Line%20Tools%20%28OS%20X%20Mountain%20Lion%29#
The same information as a shortened link is:
http://bit.ly/MOosQk
If the above link doesn't work for you, just go to the URL for Apple Developer 
downloads:
https://developer.apple.com/downloads
You'll be prompted for you AppleID and password.  If you haven't done so 
previously, you can register for a free developer account so that you can log 
in to these resources.  (This isn't the iOS developer account where you pay $99 
a year for access to the pre-releases of iOS; this is just for the Mac, so you 
can access resources like the XCode Command Line Tools.)  Once you've 
registered, you can find the Command Line Tools either by using the link I 
gave, or by typing "command line" into the search field.  The resulting table 
of results will include the .dmg files for multiple versions of the Command 
Line Tools for XCode for Mountain Lion and Lion, starting with the latest 
version first (version 4.5.2 for Mountain Lion dated November 1, 2012.)  In 
addition to the Command Line Tools for XCode, this package installs a number of 
other useful tools.  According the description:
"This package enables UNIX-style development via Terminal by installing command 
line developer tools, as well as Mac OS X SDK frameworks and headers. Many 
useful tools are included, such as the Apple LLVM compiler, linker, and Make. 
If you use Xcode, these tools are also embedded within the Xcode IDE, and can 
be installed on your system using the Downloads preferences pane within Xcode 
4.5."

The other way to get the XCode Command Line Tools without access to a developer 
account is to download the XCode app from the Mac App Store.  Then, after you 
install and open XCode, bring up the preferences menu with Command-comma.  
Navigate to the "Downloads" button in the toolbar and select it (e.g., move to 
the toolbar and interact, or you may be able to press Control-F5 to move to the 
toolbar,  then VO-Right arrow or Right arrow (if QuickNav is on) to the 
"Downloads" button and press it with VO-Space.  Then press Control-F5 to move 
from the toolbar to the "Components" tab of Downloads, which should be selected 
by default.  There's a table of components that you can install.  Make sure 
that you check the entry for "Command Line Tools".  I leave the entries for iOS 
Simulators for various version of iOS unchecked.  You also have the option to 
check the box for "Check for and install updates automatically".    The 
important step, after making sure that you've checked "Command Line Tools" in 
the table, is navigating to the "Check and Install Now" button and pressing it 
with VO-Space.  Once you've done this, the Command Line Tools will be on your 
computer, and you can proceed with either MacPorts or HomeBrew.

I think that after you install the XCode Command Line Tools, you may have to 
separately accept the terms of use.  This is normally part of the XCode 
installation -- so you might find that easier.  If you get the Command Line 
Tools for XCode from the developers account, I think that after installing them 
you have to go to Terminal and type in:
sudo xcodebuild -license

After you hit return there's supposed to be a long license agreement that you 
may have to get through by pressing your space bar a few times until you get to 
where you can accept the terms by typing "accept" at the prompt.  I haven't 
done it this way, since the last time I answered this question it was for 
someone who didn't have a developer's account, and needed to do this by 
downloading. XCode from the Mac App Store.

If you want to read more about either MacPorts or HomeBrew, here's a recent 
MacLife article:
http://www.maclife.com/article/columns/terminal_101_using_macports_and_homebrew

HomeBrew has many nice packages, but I don't think they have one for NiceCast.

HTH.  Cheers,

Esther


On Dec 26, 2012, at 12:56 PM, Sarah k Alawami wrote:

> https://trac.macports.org/wiki/InstallingMacPorts
> On Dec 26, 2012, at 5:41 AM, Dónal Fitzpatrick <[email protected]> 
> wrote:
> 
> 
> you need Xcode tools. I've never heard of  the other thing you mention but 
> I'll look it up.
> 
> Thanks.
> 
> 
> Sarah Alawami.
> 
> 
> 
>> hi Sarah,
>> 
>> Not sure if you got a response to this yet, but I'd say two things:
>> 
>> firstly, I installed Macports and I don't ever remember using XCode.  
>> Secondly, you might consider seeing if the program you want to install has a 
>> version which can be installed using HomeBrew.  Seems to work better than 
>> Macports.
>> 
>> Cheers,
>> 
>> Dónal
>> On 24 Dec 2012, at 22:53, Sarah k Alawami <[email protected]> wrote:
>> 
>>> Hello to all. I've read guides on how to install mac ports, how ever I 
>>> don't see any of the options they want me to check in the XCode 
>>> installation. The reason I want to install mac ports is I want to install 
>>> nice cast on this beast. Can anyone give advice on how to go about odin g 
>>> this?
>>> 
>>> Thanks.

<--- Mac Access At Mac Access Dot Net --->

To reply to this post, please address your message to [email protected]

You can find an archive of all messages posted    to the Mac-Access forum at 
either the list's own dedicated web archive:
<http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html>
or at the public Mail Archive:
<http://www.mail-archive.com/[email protected]/>.
Subscribe to the list's RSS feed from:
<http://www.mail-archive.com/[email protected]/maillist.xml>

The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
worm-free!

Please remember to update your membership options periodically by visiting the 
list website at:
<http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/>

Reply via email to