macports

How do I get ruby-svm to look for libraries in macports' /opt/local?

I want to install Ruby SVM. I already have macports with normal settings, and installed libsvm via port just fine. But when I go to compile rubysvm, it barfs. :( Ruby SVM: http://rubysvm.cilibrar.com/download/ (most links are 404 though) libsvm: http://www.csie.ntu.edu.tw/~cjlin/libsvm/ Try this: sudo port install libsvm wget http://d...

Installed fxruby over macports, now rubygems is broken

Hi, using OS X 10.5.6 I installed fxruby using $sudo port install rb-fxruby As suggested in the book. It works, my hello world program worked correctly. Now, though, other code that I have written is broken, whenever I try to use any code that relies on a gem, it does not work. When I do $ruby -e "require 'rubygems'" in my code, i...

Installing more than one active variant using macports

I am using macports to install wxWidgets. I would like both the release and debug version of the library installed I used macports to install the release version by running sudo port install wxwidgets, and then used sudo port install wxwidgets +debug to install the debug variant. When I run port installed wxwidgets, it shows them both...

What's an appropriate include_path PHP/PEAR setting for Macports?

I'm using Macports for my PHP development. I thought that everything associated with Macports should be located under/opt/local, but I can't load the PEAR::Mail_Mime package I just installed through PEAR. I did confirm that the path to pear is /opt/local/bin/pear, but I have no idea where it dumped the package files, so I don't know ho...

Mysql 5.1 on Mac: query cache not working

Hi, I was wondering if someone could point me in the right direction. I have set up a local Mysql 5.1 sandbox on my Snow Leopard OSX machine, I have the Macports Mysql 5.1 installed and, by all appearances, functioning. It takes queries, the database is working, etc. The only strange thing is, the query cache isn't functioning. I have ...

Converting SVN to Mercurial on Mac with working python binding doesn't work

Hi, I try to convert a local SCN repository (with all its history) to Mercurial. I am working on a Mac (10.6.2). Therefore, I am using Macports as package management tool. I started the conversion with: hg convert file:// ´pwd´/calebsvn/ The result is, that it starts to work fine, but after a while, it stops. That is the output: in...

Shared httpd.conf

I'm trying to share a single httpd.conf file across multiple OS X machines. I'm using Dropbox to manage the file and make it available to both machines. The problem I'm having is that the httpd.conf file has to load virtual host config files from a location within my home directory and the path is different on each machine. I tried refe...

Apache won't execute CGIs with Macports Perl5.8.9

I'm trying to get perl running under on my Apache 2 macports install. I'm hoping an experienced perl geek can help me out. I've... Got Apache running just dandy. Macports installed it with perl5 placeholder and perl5.8.9. Installed mod_perl2. Run the script to configure httpd.conf. Restarted apache. Written the following test script in...

MySQL bindings for Rails 2.3.5 on Mac OS X 10.5.8

I have a rails environment which I set-up with macports. I recently updated macports which seems to have had the side effect of breaking rails. When I try to boot a rails server I get: $ ./script/server => Booting WEBrick => Rails 2.3.5 application starting on http://0.0.0.0:3000 /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/...

MacPorts: Add an option to configure script

I am trying to install libguichan without allegro support, because allegro will not build on Snow Leopard. It should be left out, the portfile has: 27 if {${os.platform} == "darwin" && (([variant_isset universal] && [string match *64* $universal_archs]) || (![variant_isset universal] && [string match *64 $build_arch]))} { 28 # al...

How do I upgrade PHP in Mac OS X?

I feel this is an awfully obtuse question to ask, but strangely, this problem is poorly documented. I would like to upgrade PHP, but there are several problems: There is no built-in package manager. MacPorts doesn't recognize php as an installed package because it didn't install PHP itself. Running locate php indicates there are pro...

Symbol not found - CUnit on Snow Leopard

Hi, I just installed CUnit on Snow Leopard with MacPorts/DarwinPorts. The installation went fine, however, I get en error when trying to run the unit tests: dyld: Symbol not found: _acs_map Referenced from: /opt/local/lib/libcunit.1.dylib Expected in: flat namespace in /opt/local/lib/libcunit.1.dylib Trace/BPT trap Has anyone co...

Xapian gem failed to install on Mac OS X Snow Leopard + macports

I have installed xapian-core + xapian-bindings with macports on snow leopard, then trying to install xapian gem fails: Building native extensions. This could take a while... ERROR: Error installing xapian: ERROR: Failed to build gem native extension. /opt/ruby-enterprise/bin/ruby extconf.rb ./configure --with-ruby checking for a ...

MacPorts manual port location

I am installing one library for python from MacPorts. But macports version of the library is older than actual development svn version. Is it possible to specify a custom location for a port installation in MacPorts so I could install latest library from the developer's site? ...

TextMate can't find my RSpec gem in opt (from macports)

I know I've had this problem before so I'm really frustrated. I've got the Ruby RSpec bundle installed for TextMate, but when I Run Behaviour Description or Run Focused Example I get this wonderful error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:827: in `report_activate_error': Could not find ...

MacPorts for Python on Leopard

I haven't found any concrete language on the terminal commands for installing python 3.1 on Leopard using MacPorts. I already have 2.5.1 on Leopard by way of Apple. I don't want to mess with this version & I think having the newer version of Python running from my opt/local file would be better. Also SQL3 comes packed with the standard P...

Enabling curl in php5

Hello, I am using macports on my machine and I realized that curl is not enabled. Is there anyway to enable it without completely reconfiguring php? Thanks! ...

Problem with AquaTerm on Snow Leopard

When i try to install AquaTerm on Snow leopard from MacPorts i got this: ---> Computing dependencies for aquaterm ---> Building aquaterm Error: Target org.macports.build returned: shell command "cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_aquaterm/work/aquaterm" && /usr/bin/x...

How to resolve this PostgreSQL error on OS 10.6 (Snow Leopard)

I followed the instructions for setting up postgresql from this site All seems to go fine until I try: createuser --superuser myname -U postgres I get the following exception: createuser: could not connect to database postgres: could not connect to server: No such file or directory Is the server running locally and ...

Makefile can not find boost libraries installed by macports

I just installed boost 1.42.0 from macports using sudo port install boost. Everything worked fine. Now I have a project that I'm trying to build using a makefile. Everything builds fine until it comes to the file that needs the boost library. It says: src/graph.h:20:42: error: boost/graph/adjacency_list.hpp: No such file or directo...