Re: darwinports vs macports
Folks,
all of my experience with building applications on a unix platform is with ant and a java environment and this is the first time I've tried to use darwinports. I tried it because I wanted a copy of scite for my mac. I'm running one of the first intel based mac minis with the latest version of Tiger.
Following the instructions on the website
This is a two-step process and is easy to get working. The first step is to download and run the Darwin Ports installer<http://download.darwinports.com/> located here:download.darwinports.com. The second step is to update the ports so that they are current on your Mac. To do this, open a terminal window and check the project out of the CVS repository with the following command and enter the root password when prompted:
% sudo port -d selfupdate
Password:
1.
I downloaded the binaries for darwinports ver 1.5 and let it do the default install
2.
sudo port would run even if /opt/local/bin was the current directory so I added /opt/local/bin to the path like so:
3.
once the selfupdate was running I started seeing some messages about macports that's when I started getting confused but pressed on
4.
I tried to cd to /opt/local/bin/portslocation/dports/scite but that directory didn't exist
5.
I just ran sudo port install scite from the /opt/local/bin directory and it went off and started pulling down what I hope were just scite's dependencies, but I was a little worried because I wasn't running the install from the directory specified on the website. Eventually the install failed with the following error:
---> Fetching XFree86 Error: Target org.macports.fetch returned:
You have an Apple X11SDK installation already. MacPorts will not overwrite it.
If you wish to use Apple X11, install it from your Mac OS X install disc.
If you really want to use XFree86 instead, please move it aside first :
sudo mv /usr/X11R6 /usr/X11R6.apple
Error: The following dependencies failed to build: gtk2 cairo xrender XFree86 gtk-doc docbook-xml-4.1.2 xmlcatmgr docbook-xsl libxml2 perl5.8scrollkeeper docbook-xml docbook-xml-4.2 docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 libxslt p5-xml-parser jpeg pango Xft2 xorg-xproto xorg-util-macros tiff xorg Error: Status 1 encountered during processing.
Based on this experience I've got a couple of questions
1.
Does macports 1.6 replace darwinports 1.5 and should I be using macports instead
2.
If I should be using macports 1.6 do I need to uninstall darwinports and install macports.
3.
The macports installation instructions talk about installing x11 support and XCode support which sounds like it may be related to the error above but I don't understand the instructions in light of the fact that I've already got x11 installed
4.
can someone please provide detailed instructions on how to clean things up and move forward. I can provide the output from the entire terminal session but I wasn't sure if the list manager would allow me to attach a file to this email
Any assistance would be greatly appreciated.
Thanks
Kurt
On Mar 14, 2008, at 22:45, Kurt Andrews wrote:
Folks, all of my experience with building applications on a unix platform is with ant and a java environment and this is the first time I've tried to use darwinports. I tried it because I wanted a copy of scite for my mac. I'm running one of the first intel based mac minis with the latest version of Tiger.
Following the instructions on the website
This is a two-step process and is easy to get working. The first step is to download and run the Darwin Ports installer located here:download.darwinports.com. The second step is to update the ports so that they are current on your Mac. To do this, open a terminal window and check the project out of the CVS repository with the following command and enter the root password when prompted:
% sudo port -d selfupdate Password:
I downloaded the binaries for darwinports ver 1.5 and let it do the default install sudo port would run even if /opt/local/bin was the current directory so I added /opt/local/bin to the path like so: once the selfupdate was running I started seeing some messages about macports that's when I started getting confused but pressed on I tried to cd to /opt/local/bin/portslocation/dports/scite but that directory didn't exist I just ran sudo port install scite from the /opt/local/bin directory and it went off and started pulling down what I hope were just scite's dependencies, but I was a little worried because I wasn't running the install from the directory specified on the website. Eventually the install failed with the following error: ---> Fetching XFree86 Error: Target org.macports.fetch returned:
You have an Apple X11SDK installation already. MacPorts will not overwrite it.
If you wish to use Apple X11, install it from your Mac OS X install disc.
If you really want to use XFree86 instead, please move it aside first :
sudo mv /usr/X11R6 /usr/X11R6.apple
Error: The following dependencies failed to build: gtk2 cairo xrender XFree86 gtk-doc docbook-xml-4.1.2 xmlcatmgr docbook-xsl libxml2 perl5.8 scrollkeeper docbook-xml docbook-xml-4.2 docbook- xml-4.3 docbook-xml-4.4 docbook-xml-4.5 libxslt p5-xml-parser jpeg pango Xft2 xorg-xproto xorg-util-macros tiff xorg Error: Status 1 encountered during processing.
Based on this experience I've got a couple of questions Does macports 1.6 replace darwinports 1.5 and should I be using macports instead If I should be using macports 1.6 do I need to uninstall darwinports and install macports. The macports installation instructions talk about installing x11 support and XCode support which sounds like it may be related to the error above but I don't understand the instructions in light of the fact that I've already got x11 installed can someone please provide detailed instructions on how to clean things up and move forward. I can provide the output from the entire terminal session but I wasn't sure if the list manager would allow me to attach a file to this email Any assistance would be greatly appreciated.
The project currently known as MacPorts used to be known as DarwinPorts. Two main situations caused the name change: 1) The focus of the project changed to providing the best Mac OS X package manager, rather than trying to also provide a package manager for the stand-alone Darwin OS, which almost none of the port developers use and therefore almost none of the ports are tested on, and 2) the official web site was www.darwinports.org but someone not affiliated with the project set up a rogue web at www.d*****ports.com with conflicting and inaccurate information. Please do not refer to www.d*****ports.com for any information about the MacPorts project. Please refer to www.macports.org only. See our wonderful guide at guide.macports.org. Please read Chapter 2: Installing MacPorts and Chapter 3: Using MacPorts. May I ask what led you to www.d*****ports.com in the first place? I understand that unfortunately it scores a rather higher PageRank in Google... I wish it were not so, and I would like to know how to change that. To upgrade from DarwinPorts to MacPorts, or MacPorts to any future version, run "sudo port selfupdate". Sounds like you already did this so you should already have MacPorts 1.6.0. You seem to have part but not all of X11 installed. You need both the X11 User package from the Mac OS X DVD (which accounts for X11.app in your Utilities folder) and the X11 SDK package from Xcode (which is the part that lets you build other software for X11). Install X11 User first (you probably already have it), then install the latest Xcode for your OS, and make sure to tell it to install the X11 SDK as well. To install any port foo, just run "sudo port install foo". That's all you need to do. You don't need to be in any particular directory. But you may want to first see if there are any variants that you would like to select. Run "port info foo" and "port variants foo". Yes, you need to add /opt/local/bin and /opt/local/sbin to your PATH. That is, the MacPorts installer should do so for you. Versions prior to 1.6.0 did so for you. 1.6.0 has a bug where it does not do so for you and you must do it manually. This will be fixed in the next version. If you have any other questions please let us know. Welcome to MacPorts!
Thanks for the help, your explanation made it easy to get all the proper components installed to get macports working properly. The scite install is still having problems, but I'll get to that after I take care of one of your questions. On Sat, Mar 15, 2008 at 3:39 AM, Ryan Schmidt <ryandesign@macports.org> wrote:
May I ask what led you to www.d*****ports.com in the first place? I
understand that unfortunately it scores a rather higher PageRank
in Google... I wish it were not so, and I would like to know how to
change that.
I don't remember my exact search terms it has something like scite and mac os X and maybe even darwin in one of the searches but after I read your response I even tried macports scite and the d*****ports.com page entry came up as the first one. We have a group of folks at work who do search engine optimization I'll ask them for some advice. If I get any, I'll pass it on.
To upgrade from DarwinPorts to MacPorts, or MacPorts to any future version, run "sudo port selfupdate". Sounds like you already did this so you should already have MacPorts 1.6.0.
I used the macports 1.6 dmg file to install over the top of what I had before. I know you said I didn't have to, but the idea of a rogue site made me a little nervous.
You seem to have part but not all of X11 installed. You need both the X11 User package from the Mac OS X DVD (which accounts for X11.app in your Utilities folder) and the X11 SDK package from Xcode (which is the part that lets you build other software for X11). Install X11 User first (you probably already have it), then install the latest Xcode for your OS, and make sure to tell it to install the X11 SDK as well.
All is well with x11. once I was using the installation instructions from the macports site, fixing the issue was relatively easy. To install any port foo, just run "sudo port install foo". That's all
you need to do. You don't need to be in any particular directory. But you may want to first see if there are any variants that you would like to select. Run "port info foo" and "port variants foo".
Yes, you need to add /opt/local/bin and /opt/local/sbin to your PATH. That is, the MacPorts installer should do so for you. Versions prior to 1.6.0 did so for you. 1.6.0 has a bug where it does not do so for you and you must do it manually. This will be fixed in the next version.
One of the installs put a .profile in my home directory once I sourced that from .bash_profile everything worked fine. If you have any other questions please let us know. Welcome to MacPorts! The scite install is still giving me problems. Here is the output from my terminal session including every thing I did per the instructions to try to resolve the issue. I guess I'll have to open a ticket? ---> Fetching docbook-xsl ---> Attempting to fetch docbook-xsl-1.72.0.tar.bz2 from http://downloads.sourceforge.net/docbook ---> Verifying checksum(s) for docbook-xsl Error: Checksum (md5) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Checksum (sha1) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Checksum (rmd160) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Target org.macports.checksum returned: Unable to verify file checksums Error: The following dependencies failed to build: gtk2 gtk-doc docbook-xsl libxml2 perl5.8 scrollkeeper docbook-xml docbook-xml-4.2 docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 libxslt p5-xml-parser jpeg pango Xft2 xorg-xproto xorg-util-macros tiff Error: Status 1 encountered during processing. discovery:~ kandrews$ sudo port sync Password: discovery:~ kandrews$ sudo port install scite ---> Verifying checksum(s) for docbook-xsl Error: Checksum (md5) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Checksum (sha1) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Checksum (rmd160) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Target org.macports.checksum returned: Unable to verify file checksums Error: The following dependencies failed to build: gtk2 gtk-doc docbook-xsl libxml2 perl5.8 scrollkeeper docbook-xml docbook-xml-4.2 docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 libxslt p5-xml-parser jpeg pango Xft2 xorg-xproto xorg-util-macros tiff Error: Status 1 encountered during processing. discovery:~ kandrews$ sudo port clean --dist scite ---> Cleaning scite discovery:~ kandrews$ sudo port install scite ---> Verifying checksum(s) for docbook-xsl Error: Checksum (md5) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Checksum (sha1) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Checksum (rmd160) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Target org.macports.checksum returned: Unable to verify file checksums Error: The following dependencies failed to build: gtk2 gtk-doc docbook-xsl libxml2 perl5.8 scrollkeeper docbook-xml docbook-xml-4.2 docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 libxslt p5-xml-parser jpeg pango Xft2 xorg-xproto xorg-util-macros tiff Error: Status 1 encountered during processing.
On Mar 15, 2008, at 23:12, Kurt Andrews wrote:
The scite install is still giving me problems. Here is the output from my terminal session including every thing I did per the instructions to try to resolve the issue. I guess I'll have to open a ticket?
---> Fetching docbook-xsl ---> Attempting to fetch docbook-xsl-1.72.0.tar.bz2 from http:// downloads.sourceforge.net/docbook ---> Verifying checksum(s) for docbook-xsl Error: Checksum (md5) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Checksum (sha1) mismatch for docbook-xsl-1.72.0.tar.bz2 Error: Checksum (rmd160) mismatch for docbook-xsl-1.72.0.tar.bz2
[snip] I tried it just now and the checksums verify just fine, so I think you just got a bad download. Clean it out and try again: sudo port clean --all docbook-xsl
participants (2)
-
Kurt Andrews
-
Ryan Schmidt