macports

How can I get rid of this ruby warning?

I have just installed ruby 1.9.1-p429 with macports. Every time I use it, it displays this error message: $ ruby1.9 -e "puts 'hi.'" Error loading gem paths on load path in gem_prelude can't modify frozen string <internal:gem_prelude>:69:in `force_encoding' <internal:gem_prelude>:69:in `set_home' <internal:gem_prelude>:38:in `dir' <inter...

additional python installed upon installing matplotlib with macports

I am having trouble installing matplotlib on mac os 10.6, so I used macports and installed all dependencies it needed, which is great, but on top of it a new python version. Now I have two python versions and that bothers me. The matplotlib is working fine on the macport python, and the rest of my stuff is with the default python. What ...

'rake spec' works, 'spec spec' doesn't

When I added my first gem dependency to config/environment.rb, (will_paginate), I'm encountering an error when running rspec as follows: nik$ spec spec/ Missing these required gems: will_paginate You're running: ruby 1.8.6.369 at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby rubygems 1.3.7 at /Users/nik/.g...

Why can't I import pygtk?

I followed the instructions in this post. Everything installed successfully. However, when I run python I cannot import pygtk. Specifically, it says this: >>> import pygtk \n “ImportError: No module named pygtk” I'm guessing I have to do some commands like make or something, but I can't find anywhere where it says what to do. Please h...

Problem to compile a C-program by GCC with GD2 library installed via MacPorts

I have successfully compiled a C-program by GCC on Mac with GD2 library installed directly from sources. Now I am trying to do that with GD2 library installed via MacPorts and have the following error message: plotgeometry.c:5:16: error: gd.h: No such file or directory plotgeometry.c: In function 'PlotGeometry': plotgeometry.c:28: erro...

What is different between Ruby in standard OS X distribution, RVM and MacPorts?

I have asked a question on SuperUser about updating Ruby version in Google SketchUp. It seems that there is something different between Ruby shipped with the standard OS X distribution, and Ruby installed by RVM or MacPorts. I get the following error message when I try to use RVM's or MacPorts' Ruby 1.9.1 Exception Type: EXC_BREAKPOINT...

How do I debug C++0x programs in MacPorts gcc 4.5?

I have a simple c++ program I am trying to debug, but gdb cannot find the object file for the libraries (or no debug info is available), and it does not seem able to find the debug symbols for my executable either. I am on OSX 10.5.8, with macports, and I compile my code with g++-mp-4.5 -Wall -pedantic -std=c++0x -g -ggdb -I/opt/loc...

Installing dia on macports: invalid command name "post-deactivate"

I'm trying to install dia on Mac OSX, but I get an odd error: invalid command name "post-deactivate" $ sudo port install -d dia ---> Computing dependencies for diaError: Unable to execute port: invalid command name "post-deactivate" Before reporting a bug, first run the command again with the -d flag to get complete output. I can't f...

curl_init missing after Macports php5 install

I have a Macports installed version of php5, that is missing the curl extension. phpinfo shows /opt/local/etc/php5/php.ini as the location for php.ini, with one of the additional .ini files listed as /opt/local/var/db/php5/curl.ini The contents of curl.ini: extension=curl.so If I do a locate curl.so I get /opt/local/lib/php/extensions...

Mac ports Mysql install

I completed my install on Leopard with Mac Ports. I also installed Mysqld via Mac Ports for use with python. I set the password for mysql on mysql start. Everything seemed to be fine except when I invoke mysql-start from the command line now I get this: mysql-start ***Password: Starting MySQL . SUCCESS! demetrius-fords-macbook-pro-17:~ ...

Mac Packaging: proposal for a new method(suggestions please)

Macports is the only packaging system I have checked out on the Mac and I dont like it.(it needs all its applications installed in a particular location. Thats probably the reason why it showed Python2.5 as a dependency which needs to be installed even though I already had it.) For a person who has moved over from Ubuntu, I sorely miss a...

showkey equivalent on mac os x?

I'm debugging an emacs keyboard binding on my mac (C-/ to undo, if you're curious), and I came across a suggestion on EmacsWiki that I could use "showkey" to find the scancode. But it looks like a GNU/Linux-only kinda thing. Didn't find it on MacPorts. Anyone know of an alternative or something I'm missing? ...

Ruby on Mac OSX via Mac Ports

I'm new to both Ruby and to Mac OSX, though I do have a fair amount of experience with Unix commands. I just installed Ruby 1.9 via a MacPorts command (port install ruby19). I then needed to do a find from root just to figure out where it went, which turned out to be: /opt/local/var/macports/software/ruby19/1.9.1-p376_0/opt/local/bin/rub...

How to install OpenCV 2.1 via MacPorts in 32-bit ?

if we do "sudo port install opencv" it works fine but it installs in 64 bit as default. How do I install in 32-bit? ...

Linking Macports libraries to XCode application

I'm trying to distribute my app's dependencies with the app. I've got the macports packages librsvg, boost, and cairo installed 64-bit-only on my Snow Leopard system. When I create an .app bundle of my program, it does not work on machines without macports and the relevant libraries installed because they are not included with the app, ...

How many packages available for Homebrew and Macports?

How could I know how many packages are available for Homebrew and Macports? ...

"git diff" does nothing

Hi all, I presume this is a configuration error somewhere, but I can't figure out where. Regular git commands appear to work fine, but "git diff" does nothing. To be safe, I removed external diff tools from my .gitconfig file. This was installed via MacPorts and is the lates version (1.7.2.2). What I see is that when I run "git diff...

opencv macport python bindings

using the MacPorts install of OpenCV does not seem to install the python bindings anywhere. Are they included, where do they go? ...

/usr/local/lib/libz.1.dylib, file was built for i386 which is not the architecture being linked (x86_64)

Hi, having this problem on installing several things on my mac, i think this problem is coming from upgrading my leopard to snow leopard. Also this problem also is linked with macports i think. /usr/local/lib/libz.1.dylib, file was built for i386 which is not the architecture being linked (x86_64) Any ideas? Update To be more speci...

How do I find out how macPorts stole my port:80?

I had MAMP installed (and working fine) then I tried to install mongoDB through macPorts. macports then began installing a bunch of dependencies. after that, http://localhost started giving an "It Works!" screen. after rebooting to see if it might fix it, I found that I could not start my MAMP server. console said this: 9/13/10 1:20:54 ...