Test from iPad

This is cool,

foo

Read More »

OS X 10.7 (Lion) and MacPorts 2.0 upgrade

So I recently upgraded to the latest release of os x 10.7 (lion) and i have a few issues with lion itself … such as …

Lion

lion issues

  • you can only burn a dvd BEFORE you install
  • backward scrolling will take getting used to
  • merge folders only works when copying :(
  • not sure i prefer mission control over spaces
  • new gestures are nice
  • safari 5.1 is very fluid
  • i will probably never use launchpad
  • full screen apps are weird

MacPorts

but on to mac ports …

you will notice that macports is no longer working , updates fail etc.

$ sudo port selfupdate
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 1.9.2 installed,
MacPorts base version 2.0.0 downloaded.
--->  MacPorts base is outdated, installing new version 2.0.0
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)

lets try and get a little more detail of the error …

$ sudo port -v selfupdate 
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
receiving file list ... done
./

sent 59 bytes  received 533000 bytes  355372.67 bytes/sec
total size is 29300489  speedup is 54.97
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/ports

Total number of ports parsed:   0 
Ports successfully parsed:  0 
Ports failed:           0 
Up-to-date ports skipped:   8197

--->  Updating MacPorts base sources using rsync
receiving file list ... done
./
deleting config.log

sent 42 bytes  received 6707 bytes  13498.00 bytes/sec
total size is 2952435  speedup is 437.46
MacPorts base version 1.9.2 installed,
MacPorts base version 2.0.0 downloaded.
--->  MacPorts base is outdated, installing new version 2.0.0
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type... i386-apple-darwin11.0.0
checking host system type... i386-apple-darwin11.0.0
checking target system type... i386-apple-darwin11.0.0
checking MacPorts version... 2.0.0
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... no
checking Mac OS X version... 10.7
checking Xcode version... 3.2.3
checking for gcc... /usr/bin/llvm-gcc-4.2
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base':
configure: error: C compiler cannot create executables
See `config.log' for more details
shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && CC=/usr/bin/llvm-gcc-4.2 ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install" returned error 77
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)

the c compiler complains about not being valid …
since lion is a whole new architecture it is worth looking at the macports migration guide

if you try and install macports 2.0 first you will get an error that you need xcode 4.1

apparently you need to install a whole new version of xcode which is now free and only available in the mac app store.

http://developer.apple.com/

you will want to install xcode and then a new pkg of macports.

you may also need to uninstall and reinstall all your old ports.

first let’s see if we can just upgrade our ports …

$ sudo port -fun upgrade outdated
Password:
--->  Computing dependencies for apache2
--->  Cleaning apache2
--->  Unable to uninstall apache2 @2.2.19_0+preforkmpm, the following ports depend on it:
--->    php5 @5.3.6_0+apache2+fastcgi+pear
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating apache2 @2.2.19_0+preforkmpm
--->  Unable to deactivate apache2 @2.2.19_0+preforkmpm, the following ports depend on it:
--->    php5 @5.3.6_0+apache2+fastcgi+pear
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning apache2
--->  Uninstalling apache2 @2.2.19_0+preforkmpm
--->  Cleaning apache2
--->  Computing dependencies for apache2
--->  Fetching archive for apache2
--->  Fetching apache2
--->  Verifying checksum(s) for apache2
--->  Extracting apache2
--->  Applying patches to apache2
--->  Configuring apache2
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for apache2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/apache2/main.log
--->  Computing dependencies for apr-util
--->  Dependencies to be installed: libiconv
--->  Configuring libiconv
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Error: Failed to install libiconv
Log for libiconv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libiconv/libiconv/main.log
Error: The following dependencies were not installed: libiconv
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

looks like a few ports have problems, such as apache2, apr, libiconv, etc …

uninstall and re-installing ports

after several attemts to upgrade and install gawk / libiconv i just gave up and followed the migration instructions.

  1. force uninstall everything that is installed
  2. clean all ports
  3. re-install needed ports

we can save a list of our installed ports for later use by doing the following command recommended in the macports upgrade guide

$ port -qv installed > myports.txt

also see … http://systems.takizo.com/2011/07/22/os-x-lion-macports-1/

also here is a list of current macport problems with lion


Reinstall ports

To reinstall your ports:

Save the list of installed ports:

port -qv installed > myports.txt

Uninstall all installed ports:

sudo port -f uninstall --follow-dependents installed

Clean any partially-completed builds:

sudo port clean all

Browse myports.txt and install the ports that you actually want to use (as opposed to those that are only needed as dependencies) one by one, remembering to specify the appropriate variants:

sudo port install portname +variant1 +variant2 …

Note that if you have specified variants which are not the default, you may need to install ports in an order other than the alphabetical order recorded in myports.txt.

Ubuntu 10.04 LTS (Lucid Lynx) upgrade problems

I’m seeing garbled display upon reboot at the login screen … also extremely high load averages when idle and logged in through ssh , display seems fine but sluggish using VNC … seems to be related to xorg and nvidia woes as usual …. why oh why can’t linux get this right finally?

Also the new desktop wallpaper looks like a 1995 photoshop lens flare disaster … “did everything just taste purple for a second?”

Update: still having problems at the moment but found some useful info in the ubuntu forums

Update: now i got a flashing boot screen with alternating console output and strobing ubuntu purple screen … booting from the 10.04 live cd doesn’t help either, i can’t get past the first screen which is just a block. this is all made more difficult by the lack of usb support in grub loading screen and somehow i can’t ssh in anymore to tinker with xorg.conf :(

ubuntu 9.10 live cd to the rescue …

Update: Yay! looks like everything is finally working now … i had to boot off 9.10 live cd, install lvm2 so i could mount my old drives, then re-edit grub.conf and delete my xorg.conf. load averages are back to normal and i can ssh & vnc once again now too. :)

installing mozilla raindrop on os x

ok so i thought i would give mozilla raindrop a test … first i wanted to check it out on my laptop and them maybe install it on my ubuntu dev box after reading this article

why not give it a shot on my laptop as well ….

follow their instructions here


    $ hg clone -r 0.1 http://hg.mozilla.org/labs/raindrop 
    $ cd raindrop
    $ ./server/python/check-raindrop.py

so after i check out the code and run their test it tells me i’m missing a few things …


$ port search couch
couchdb @0.9.1 (databases)
    CouchDB is a document database server

$ sudo port install couchdb
...
--->  Installing couchdb @0.9.1_0
--->  Activating couchdb @0.9.1_0
########################################################################
# Changes in CouchDB 0.9 make 0.8.1 database files incompatible.
# See http://wiki.apache.org/couchdb/BreakingChanges for details
#
# Run the following command to install the CouchDB launchd
# startup item in order to start and re-start service automatically:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist
########################################################################
--->  Cleaning couchdb
$ sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist
$ ./raindrop/server/python/check-raindrop.py
ERROR: module 'twisted>=8.2' is missing

now i’m missing twisted … i’m feeling brave so i’ll try to use their configure option …


$ sudo ./server/python/check-raindrop.py --configure
Password:
module 'twisted>=8.2' is missing - attempting easy-install
Searching for twisted>=8.2
...
Processing dependencies for twisted>=8.2
Searching for zope.interface

uh oh looks like it had a problem installing the zope interface …

no luck. ok so lets try and install what’s missing through macports …

well there’s a py26-twisted package …


$ sudo port install py26-zopeinterface 
--->  Computing dependencies for py26-zopeinterface
--->  Building py26-zopeinterface
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-zopeinterface/work/zope.interface-3.3.0" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1
Command output: reading manifest file 'src/zope.interface.egg-info/SOURCES.txt'
writing manifest file 'src/zope.interface.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 86, in 
    **extra)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 987, in run_commands
    self.run_command(cmd)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 1007, in run_command
    cmd_obj.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build.py", line 134, in run
    self.run_command(cmd_name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 1007, in run_command
    cmd_obj.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 46, in run
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Pyrex/Distutils/build_ext.py", line 82, in build_extensions
    self.build_extension(ext)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 175, in build_extension
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py", line 460, in build_extension
    ext_path = self.get_ext_fullpath(ext.name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py", line 633, in get_ext_fullpath
    filename = self.get_ext_filename(modpath[-1])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 85, in get_ext_filename
KeyError: '_zope_interface_coptimizations'

Error: Status 1 encountered during processing.

this breaks because of a few bugs with python 2.6.3 as well as some conflicts with the setuptools vs distribute packages ….

weee …. so still trying to figure out where to go next or maybe just install on ubuntu …

Google Chrome Frame and you

Ok so Google has this plug-in that just came out for IE called “Google Chrome Frame” … kinda silly name, i know. So WTF does it do and why is Google doing this? Obviously MS is not happy about it either.

wave-news

Basically its a plug-in for IE that lets sites opt into using chrome for the rendering engine. This is great since IE is way behind in speed and HTML5 features. At first I wasn’t sure why Google would do this … do they really hate IE that much? Then it became clear. This is their workaround for Google wave which is an html5 app that doesn’t support any version of IE. Well now they can have their cake and eat it too.

For whatever reason people don’t want to switch or can’t switch away from IE or even upgrade for that matter. now there is a bit of light on the horizon for web developers everywhere. while this plugin might not get very wide spread usage it offers us web developers a new option in the way we deliver a web experience to users.

its as simple as adding a single tag to your page


 <meta http-equiv="X-UA-Compatible" content="chrome=1">

how to use it … well its kinda buggy. here are some things i have discovered so far

  • must come close to top of head tag … ?
  • must be added to every page
  • page must not be cached … ?
  • also seems using it in http headers doesn’t work the way the IE7 tag does … ?

more from ppk

snow leopard firewall stealth connection attempts – SHIELDS UP!

have you noticed any weird firewall log messages since installing snow leopard? i keep seeing requests for ports 53(dns), 548(AFP), 88(Kerberos), 80(WWW) from weird ip addresses … strange thing is logs only started showing up since 29th, after installing snow leopard … i’m still not sure how any traffic would get through 2 routers (both with firewalls) and make it to my laptop which is also firewalled.

ok, so is it just me, snow leopard, comcast or am i really being hacked?


9/14/09 1:01:42 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:59043 from 87.98.164.164:53
9/14/09 1:01:42 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:57020 from 64.34.177.159:53
9/14/09 1:01:42 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:54377 from 72.32.93.189:53

^^ keep seeing shit like that in the console log ever since SL , mostly when i’m web browsing
port 53 is dns, but why is it hitting random ports on my laptop?
this has been bugging me now for a while

also how is any traffic making it through 2 firewall/routers subnets? it was a bitch even getting p2p forwarding to my pc without configing both routers … so i don’t see how anything can make it through unless i tell it.

ok i would love not to worry but i get so much log spam from that thing … just opening a link i get all this traffic?


9/14/09 1:10:38 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:58002 from 69.63.176.8:53
9/14/09 1:10:39 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:56387 from 72.21.80.6:53
9/14/09 1:10:40 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:64337 from 67.72.21.11:53
9/14/09 1:10:49 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:53978 from 72.233.69.14:53
9/14/09 1:10:50 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:56028 from 199.249.112.1:53
9/14/09 1:10:50 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:52652 from 72.233.69.14:53
9/14/09 1:10:50 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:50300 from 192.42.93.30:53
9/14/09 1:10:50 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:50300 from 192.42.93.30:53
9/14/09 1:10:50 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:51259 from 192.35.51.30:53
9/14/09 1:10:50 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:51259 from 192.35.51.30:53
9/14/09 1:10:50 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:55869 from 192.42.93.30:53
9/14/09 1:10:51 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:51135 from 91.194.75.162:53
9/14/09 1:10:51 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:51259 from 192.42.93.30:53
9/14/09 1:10:51 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:61256 from 192.41.162.30:53
9/14/09 1:10:51 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:63180 from 192.26.92.30:53
9/14/09 1:10:51 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:52961 from 204.74.108.253:53
9/14/09 1:10:51 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:55880 from 62.189.48.1:53
9/14/09 1:10:51 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:55880 from 62.189.48.1:53
9/14/09 1:10:51 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:57952 from 192.35.51.30:53
9/14/09 1:10:52 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:57226 from 64.182.102.188:53
9/14/09 1:10:52 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:61042 from 192.41.162.30:53
9/14/09 1:10:52 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:55298 from 192.220.125.10:53
9/14/09 1:10:52 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:55915 from 192.33.14.30:53
9/14/09 1:10:52 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:55915 from 192.33.14.30:53
9/14/09 1:10:52 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:54666 from 76.74.159.137:53
9/14/09 1:10:52 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:57169 from 64.207.128.18:53
9/14/09 1:10:52 PM	Firewall[57]	Stealth Mode connection attempt to UDP 192.168.1.130:60405 from 64.207.128.18:53

that’s a bit much for opening 1 url
its almost like a distributed port scanner dns service or something
some of those ip’s are private too which makes even less sense

just what the hell is going on here?

Update: ok i’ve disabled UPnP on my router and some of the log messages have dropped. also switched the main router to use OpenDNS. but i’m still seeing a few weird stealth mode requests ….


9/14/09 2:44:21 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50576 from 208.69.38.150:443
9/14/09 2:44:24 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50576 from 208.69.38.150:443
9/14/09 2:44:30 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50576 from 208.69.38.150:443
9/14/09 2:44:42 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50576 from 208.69.38.150:443
...
9/14/09 2:45:06 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50576 from 208.69.38.150:443
9/14/09 2:45:54 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50576 from 208.69.38.150:443
9/14/09 2:49:41 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50664 from 76.74.255.125:80
9/14/09 2:49:45 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50664 from 76.74.255.125:80
9/14/09 2:49:51 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50664 from 76.74.255.125:80
...
9/14/09 2:50:03 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50664 from 76.74.255.125:80
...
9/14/09 2:50:27 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50664 from 76.74.255.125:80
...
9/14/09 2:51:15 PM	Firewall[57]	Stealth Mode connection attempt to TCP 192.168.1.130:50664 from 76.74.255.125:80

WTF? i really don’t get it …

Update 2: i’m also seeing requests using IPv6 …


9/14/09 4:32:21 PM	Firewall[57]	Stealth Mode connection attempt to TCP ::219:e3ff:fe03:c6f0:52506 from ::21c:b3ff:feb1:4459:548
...
9/14/09 4:32:34 PM	Firewall[57]	Stealth Mode connection attempt to TCP fe80:6::219:e3ff:fe03:c6f0:52488 from fe80:6::21b:63ff:fef5:
...
9/14/09 4:32:34 PM	Firewall[57]	Stealth Mode connection attempt to TCP fe80:6::219:e3ff:fe03:c6f0:52495 from fe80:6::21b:63ff:fef5:
9/14/09 4:32:53 PM	Firewall[57]	Stealth Mode connection attempt to TCP fe80:6::219:e3ff:fe03:c6f0:52505 from fe80:6::21c:b3ff:feb1:
9/14/09 4:32:53 PM	Firewall[57]	Stealth Mode connection attempt to TCP ::219:e3ff:fe03:c6f0:52506 from ::21c:b3ff:feb1:4459:548

os x 10.6 (snow leopard) and macports

so a few glitches upgrading to snow leopard recently.
a couple programs didn’t work and needed to be re-installed (nambu, parallels, etc), a few issues with macports …


$ port --version
dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): no suitable image found.  Did find:
	/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: mach-o, but wrong architecture
    while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
    ("package ifneeded Pextlib 1.0" script)
    invoked from within
"package require Pextlib 1.0"
    (file "/opt/local/bin/port" line 40)

also when trying to do a selfupdate …


$ sudo port selfupdate
dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): no suitable image found.  Did find:
	/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: mach-o, but wrong architecture
    while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
    ("package ifneeded Pextlib 1.0" script)
    invoked from within
"package require Pextlib 1.0"
    (file "/opt/local/bin/port" line 40)
dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): no suitable image found.  Did find:
	/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: mach-o, but wrong architecture
    while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
    ("package ifneeded Pextlib 1.0" script)
    invoked from within
"package require Pextlib 1.0"
    (file "/opt/local/bin/port" line 40)
dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): no suitable image found.  Did find:
	/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: mach-o, but wrong architecture
    while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
    ("package ifneeded Pextlib 1.0" script)
    invoked from within
"package require Pextlib 1.0"
    (file "/opt/local/bin/port" line 40)

so we can try to re-install macports from source, should fix our problems …


$ svn co http://svn.macports.org/repository/macports/trunk/base/ macports-svn
...
$ cd macports-svn
$ ./configure && make && sudo make install;
checking build system type... i386-apple-darwin10.0.0
checking host system type... i386-apple-darwin10.0.0
checking target system type... i386-apple-darwin10.0.0
checking MacPorts version... 1.8.99
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... no
checking Mac OS X version... 10.6
checking Xcode version... 3.1
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/pjkix/src/macports-svn':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

even more troubling news …


$ echo $PATH
/opt/local/lib/mysql5/bin:/usr/local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

ok lets find gcc … apparently we need to re-init locate db in snow leopard as well …


$ locate gcc
WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.

looks like its sorta here


$ /Developer/usr/bin/gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5484~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5484)

so even though i can run xcode.app it appears that i must re-install it from the snow leopard disc or install the iphone sdk version from apple …

ok so now we got gcc again … back to macports …


$ which gcc
/usr/bin/gcc
$ gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)

ok so macports is back working, lots of things out of date … also apache2 has some issues with ssl.

a quick uninstall and re-install fixes this …

need to reinstall ncurses and readline as well as db44, db46 , gawk, libiconv, … basically repeate the following for each that has issues.


$ sudo port -f uninstall ncurses
$ sudo port clean ncurses
$ sudo port install ncurses

if you have a lot of installed mac ports it might be easier to just start from a fresh /opt/local by moving the old files out of the way and re-installing the ports you need.

seem to have problems with libemf, libvorbis as well …

if you see something like the following in the error output, it probably mean a dependancy is installed but needs to be updated first, so you might be able to upgrade it or need to uninstall, clean, re-install which seems to solve the problem


ld: symbol(s) not found

this command might also be usefull if variants are installed but need to be rebuilt first for x86_64


sudo port -fu upgrade --enforce-variants outdated

also a list of macport issues … here http://trac.macports.org/wiki/SnowLeopardProblems and here http://trac.macports.org/wiki/snc/snowleopard. also good info here http://trac.macports.org/wiki/Migration

twitter tools … more good stuff

anyone using twitter needs the following greasmonkey scripts installed right away.

first up is @troynt twitter script.
this adds all sorts of good stuff to twitter ui.

  • groups
  • expand short urls
  • inline media such as twitpic and youtube
  • river of news infinite page scrolling
  • retweet
  • many more enhancemnts

the next up is … Twitter Search Results on Google

this adds real time twitter results to google search results pages. very useful for up to the minute reactions to to the very thing you are searching for. aka the worldwide pulse of your keyword search.

now go forth and enjoy the power of twitter tools

choose your destiny!

impending upgrades loom … which side will you choose?

Windows:

confused?

confused?


Mac:
too easy

too easy

via (marco.org & strelau.net)

40th anniversary of the apollo moon landing

in celebration of the moon landing … coverage from the onion ( http://www.theonion.com/content/node/26247 ) w/video ( http://www.youtube.com/watch?v=dIkHLO93lCA ) and rathergood ( http://www.rathergood.com/moon_song )
also from mr show … blow that shit up! http://www.youtube.com/watch?v=Csj7vMKy4EI
and don’t forget the mighty boosh … http://www.imthemoon.tv/