` bt-blog: "os x"

PAGE HAS MOVED AGAIN

NOTE : This is no longer being maintained -- go to http://research.tannerpages.com


In fact, it's worse than not being maintained... I actually moved the content. So just come over!

Showing posts with label "os x". Show all posts
Showing posts with label "os x". Show all posts

May 7, 2007

How to install sCons on Intel Mac OS 10.4.9

sCons (http://www.scons.org/) is an awesome, cross platform, python based build tool. I am using it for my bt-glue project.

Anyways: installation is quite straightforward. But you need to know 1 key thing! Get the latest build, and NOT the stable build. The stable build is several years old and missing features you want. I promise.

1) Download the latest tarball, unpack it
2) Execute: sudo python setup.py install
3) Edit your .profile and update your path to include:
/System/Library/Frameworks/Python.framework/Versions/Current/bin

If you don't know what that means, that's ok.
i) Create a file in your home directory called ".profile".
ii) Add a line like this:
export PATH=$PATH:/System/Library/Frameworks/Python.framework/Versions/current/bin

iii) Save the file

Now, when you open a new terminal session, you should be able to type: scons -version and have good things happen.

Happy sCons'ing.

How to install it++ on Mac OS X 10.4.9

Note: Thanks to Alex Alvarado for pointing out a small error with the instructions. Also thanks to Brad Joyce for pointing our numerous other leaps in the directions.

There is some cool software called it++ which lets you write and do Matlab/Octave-like things in C++. So far I've had some trouble getting it installed.

You see, it uses blas, cblas, LAPACK, and fftw (and maybe some other stuff). Generally you'd want to have all these installed yourself before using it++, but on Mac OS X (since 10.2 I think), everything except fftw comes in the vecLib framework (which comes WITH OS X).

So, how do you get this thing running?

1) You need a fortran compiler, and apparently you won't have one by default. In theory, you can install it with Fink. That didn't work for me. I went to http://hpc.sourceforge.net/ and used his binaries . You're looking for g77 3.4. There are instructions there on exactly how to unpack the archive so that everything goes to the right place. Works great. Make sure that you add it to your path in ~/.profile and that you restart terminal (so that the changes take effect). G77 will go in /usr/local/bin, so you should add a line to your ~/.profile like:
export PATH=/usr/local/bin:$PATH

2) You need fftw. I just downloaded, did a ./configure , make, sudo make install and it went off without a hitch.

3) Now you want to install it++. First, go download and unpack it. Then, you should be able to:
./configure

You'll see this (hopefully)
------------------------------------------------------------------------------
itpp-3.10.10 library configuration:
------------------------------------------------------------------------------

Directories:
- prefix ......... : /usr/local
- exec_prefix .... : ${prefix}
- includedir ..... : ${prefix}/include
- libdir ......... : ${exec_prefix}/lib
- docdir ......... : ${datarootdir}/doc/itpp-3.10.10

Switches:
- debug .......... : no
- exceptions ..... : no
- html-doc ....... : no
- shared ......... : yes
- static ......... : no

Documentation tools:
- doxygen ........ : no
- latex .......... : yes
- dvips .......... : yes
- ghostscript .... : yes

Testing tools:
- diff ........... : yes
- sed ............ : yes

External libs:
- BLAS ........... : yes
* MKL .......... : no
* ACML ......... : no
* ATLAS ........ : no
- CBLAS .......... : yes
- LAPACK ......... : yes
- FFT ............ : yes
* MKL .......... : no
* ACML ......... : no
* FFTW ......... : yes

Compiler/linker flags/libs/defs:
- CXX ............ : g++
- F77 ............ : g77
- CXXFLAGS ....... : -DASSERT_LEVEL=1 -O3 -fno-exceptions -pipe
- CXXFLAGS_DEBUG . :
- CPPFLAGS ....... :
- LDFLAGS ........ :
- LIBS ........... : -lfftw3 -llapack -lblas

Note: If y ou didn't install fortran (g77), it WONT FIND LAPACK OR BLAS. That took me a long time to sort out. You've been warned.

Now, if everything went according to plan, you can do:
make
make check

This will run some checks to make sure things are working ok.

sudo make install

That's it, now you're done. Great work. Watch for a follow up post of how to use it++!

May 5, 2007

Samsung ML-1610 Printer on Mac OS X (Intel Mac)

NOTE: Some of the steps in these instructions don't work anymore because the files don't exist. I've updated the instructions to work on Leopard, which you can check out here: Samsung ML-1610 Printer on Mac OS X 10.5 Leopard (Intel Mac) .

Hi. I have tried so many times to figure out how to get my Samsung ML-1610 printer working on my Intel Mac.

There are many quick explanations on the web of how to do this, but they don't seem to have all of the details... and as a non Unix guru, I've always had trouble making them work.

--

Ack. I just spent hours trying to actually get this working. I don't know why I try to be so clever. The instructions are posted below. The things is, all of the directions use OLD files, made for powerPC. I'm using a new Intel Mac, so I thought instead of following the direct links from instructions (to old files), I should find the up to date versions. NO LUCK with that.

Moral of the story: don't try to be clever. Here are the directions.
1) Go here: http://www.linux-foundation.org/en/OpenPrinting/MacOSX/hpijs

2) Download and install espgs-7.07.1.ppc.dmg (5.4 MB)

"But Brian" (you say), "that's powerPC! I have an Intel Mac." That's true.

You might also find it interesting to know that ESPGS (ESP Ghost Script) has been replaced by Gutenprint some time ago. It doesn't matter, don't go for Gutenprint. I tried that route, and had no end to my problems. I tried to build it from source and had errors, then installed it from a disk image only for it to 'work' but instead of printing my documents it would just fire up my printer and then not do anything.

Just install the old one from the page.

This worked on OS X 10.4.9 on an brand new Intel Imac on May 5 2007.

If you are more clever than me and got it working with newer software please tell me.

3) Download and install hpijs-foomatic-2.0.2.ppc.dmg (1.6 MB)

Same story, I know, I know, it looks old. It works. Suck it up. :P

4) Go to System Preference --> Print & Fax

5) Click the + button to add a printer

6) Samsung should be in the list now! Thank heavens. But, ML-1610 isn't there! Oh no! Just use ML-1210 Soomatic + GDI. Seems to work fine.

There, all done.

Again, if you have a more up to date method than this, please share it with me. I'm just glad to finally have this working.