Sponsored Content
Top Forums UNIX for Advanced & Expert Users Intelligently Installing from Source Post 302143997 by Alex_Land on Monday 5th of November 2007 10:03:34 PM
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
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
RI(1)							 Ruby Programmers Reference Guide						     RI(1)

NAME
ri -- Ruby API reference front end SYNOPSIS
ri [-Ti] [-d directory] [-f format] [--list-doc-dirs] [--no-standard-docs] [--[no-]{system|site|gems|home}] [--[no-]use-cache] [--width=width] [target ...] DESCRIPTION
ri is a CLI front end for the Ruby API reference. You can search and read API reference for classes and methods with ri. ri is a part of Ruby. target can be one of the following forms: Class for classes Class::method for class methods Class#method for instance methods Class.method for both class and instance methods method for both class and instance methods All class names may be abbreviated to their minimum unambiguous form. If a name is ambiguous, all valid options will be listed. For example: ri Fil ri File ri File.new ri zip Note that shell quoting may be required for method names containing punctuation: ri 'Array.[]' ri compact OPTIONS
--version Prints the version of ri. -T --no-pager Send output directly to stdout, rather than to a pager. -d directory --doc-dir=directory List of directories from which to source documentation in addition to the standard directories. May be repeated. -f FORMAT --fmt FORMAT --format=FORMAT Format to use when displaying output: Use 'bs' (backspace) with most pager programs. To use ANSI, either disable the pager or tell the pager to allow control char- acters. -i --interactive This makes go into interactive mode. When is in interactive mode it will allow the user to disambiguate lists of methods in case multiple methods match against a method search string. It also will allow the user to enter in a method name (with auto-completion, if readline is supported) when viewing a class. --list-doc-dirs List the directories from which ri will source documentation on stdout and exit. --no-standard-docs Do not include documentation from the Ruby standard library, site_lib, installed gems, or ~/.rdoc. Equivalent to specifying the options --no-system, --no-site, --no-gems, and --no-home. --[no-]system Include documentation from Ruby's standard library. Defaults to true. --[no-]site Include documentation from libraries installed in site_lib. Defaults to true. --[no-]gems Include documentation from RubyGems. Defaults to true. --[no-]home Include documentation stored in ~/.rdoc. Defaults to true. --[no-]use-cache Whether or not to use 's cache. True by default. -w width --width=width Set the width of the output. ENVIRONMENT
RI Additional options. PAGER Used as the name of pager program for displaying. HOME USERPROFILE HOMEPATH Path to user's home directory. FILES
~/.ri Caches recently referenced documents here. ~/.rdoc Searches user-wide documents here. SEE ALSO
ruby(1) rdoc(1) gem(1) REPORTING BUGS
Security vulnerabilities should be reported via an email to <security@ruby-lang.org>. Reported problems will be published after being fixed. And you can report other bugs and feature requests via the Ruby Issue Tracking System (http://bugs.ruby-lang.org). Do not report security vulnerabilities via the system because it publishes the vulnerabilities immediately. AUTHORS
Written by Dave Thomas <dave@pragmaticprogrammer.com> UNIX
June 1, 2019 UNIX
All times are GMT -4. The time now is 12:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy