Intelligently Installing from Source


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Intelligently Installing from Source
# 1  
Old 11-05-2007
Intelligently Installing from Source

Hi:

(I apologise in advance for the lengthy prelude--but i think it's necessary to properly ask my question.) I code in Ruby and Python on Mac OS X. Ruby, for instance, as i suspect everyone here knows, is both open source and it it lacks native support for e.g., GUI and Image Manip. These two characteristics are the root of the problem (actually my lack of knowledge is the problem). For instance, in order to successfully package even a simple script in Ruby, I nearly always need Tk/Tcl (+ Ruby Bindings), ImageMagick, and several Ruby Gems (Ruby's package mgmt system, like Perl's CPAN). Because these are separate from the interpreter, they are installed separately, usually from source (though there are nearly always binaries available). So often, when i an upgrade to any of one of these core pieces comes along (or a reference upgrade to OS X, or even sometimes to my editor) it takes me forever to get things working again. No problem with the download/compile/config/make/install--that's more or less trivial. The difficulties are after that--e.g., i know i have both ImageMagick/RMagick installed on my box, that they are in their "proper" place, and i've got all dependencies resolved--but i just can't get them to find each other when it comes time to execute the script. I always get it fixed--but in a very ad hoc, duct-tape sort of way, that i read on a Ruby forum, etc. and that i don't really understand, but it just works. I hate that. What i would really like to learn in a systematic way--but i can't find the right sources--are things like: how to diagnose these problems (by deciphering the bash error msg? unit test, etc.?), and then how to solve them (e.g., by adding header files? by symlinking files to another directory, etc.?). Again, i'm not after a solution to a particular problem, rather i'd be grateful if someone could point me to some sources that i could study and slowly develop some sort of map to troubleshoot these sort of problems in a systematic way. Thanks for your consideration and for reading this way-too-long Q. cheers
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Intelligently merge two files

I have two files as the following: file1: 243 242 243 242 242 file2: 243 car 360 396k 242 bike 240 217k I want the corresponding $3 in file 2 added as $2 in file 2. The expected output would be: 243 360 242 240 243 360 (2 Replies)
Discussion started by: jamie_123
2 Replies

2. UNIX for Dummies Questions & Answers

How to use a error log file intelligently.?

This has broad implications but is there a way to tell which applications are logging into lets say xsessons error file? How do I tell which error messages pertain to which applications? Thanks in advance!:D (2 Replies)
Discussion started by: theKbStockpiler
2 Replies

3. Shell Programming and Scripting

awk "intelligently" paste two files together.

Hi everyone, I am trying to join two files together based on a field present in both files but not necessarily in the same order. File 1: 123 user1 245 user2 559 user3 File 2: 123 user1 246 user4 544 user2 Also, sometimes a user may not even be in both files. What I want awk to... (3 Replies)
Discussion started by: collards
3 Replies

4. Ubuntu

Re Installing windows XP after installing KUBUNTU

Hi I have dual operating system i.e Win XP and KUBUNTU. Now my windows XP is corrupted and i want to reinstall Win XP. So i just want to know Shall i have to reinstall Linux also or i can only reinstall win xp without affecting linux installation. Thanks Sarbjit (3 Replies)
Discussion started by: sarbjit
3 Replies

5. Shell Programming and Scripting

Source

I have a script in /etc/rc2.d that needs to run on boot up the file looks like this #!/sbin/sh source /abc/scripts/test_env.sh /abc/xyz/run I need to source the test_env.sh script they are both bash how do i do that? 'source /abc/scripts/test_env.sh' I am not too sure (3 Replies)
Discussion started by: deaconf19
3 Replies

6. Linux

Installing Firefox and now ended up installing latest glibc

Hi all, I wanted to install the latest version of firefox 2 but it seems when I attempt to install it, it seems to be saying it is looking for c libraries version 2.3? I believe I currently have an older version of the c libraries. I am currently running Sun's JDS Linux 2003. My Mozilla web... (1 Reply)
Discussion started by: scriptingmani
1 Replies

7. Shell Programming and Scripting

. and source

What's the difference of using "." and "source", such as ". .bashrc" and "source .bashrc"? (1 Reply)
Discussion started by: learn
1 Replies

8. UNIX for Dummies Questions & Answers

qt from source

i'm installing qt from source, and while making i get an error having to do with a "pthread library." what libraries do i need to install for qt to compile, and where can i get them? (1 Reply)
Discussion started by: nydel
1 Replies
Login or Register to Ask a Question