and in the middle of trying to install fixrbconfig I got an error:
usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h does not exist. This probably
means you haven’t yet installed Xcode from the Tiger DVD. You won’t be
able to compile Ruby extensions without it. Please install it then rerun
this program.
I had installed Xcode.
Any clue?
Also, I’m bothered by this error and the fact that configuration needs
to be fixed. Why do I need to “fix” something after installing it, why
do I have to use terminal to do it, and why do I have an obscure error
like this one?
The main problem I see with languages and scripts like Ruby on Rails,
PHP, etc. is that they will never be distributable to everyone who
really needs them because the task of installing the underlying
application is so daunting. Any discussion in the open source community
about solving that problem?
Is ruby installed at /usr/local/… instead? What do you get from the
following command? (those are backticks not quotes)
$ ls -l which ruby
Also, I’m bothered by this error and the fact that configuration needs
to be fixed. Why do I need to “fix” something after installing it, why
do I have to use terminal to do it, and why do I have an obscure error
like this one?
Welcome to the world of software development.
The main problem I see with languages and scripts like Ruby on Rails,
PHP, etc. is that they will never be distributable to everyone who
really needs them because the task of installing the underlying
application is so daunting. Any discussion in the open source community
about solving that problem?
The whole configure / make / make install cycle is amazingly robust
considering all that it does. Add in package managers from any number
of sources and it’s a miracle that anything works at all.
Every problem I’ve ever had with installing ruby, rails, gems, etc.
have been 100% my own fault. Without knowing more about what you’ve
done or where your files really were installed, it’s hard to say
what’s wrong. More info would be good.
everything worked great. i definitely recomment checking it out.
I tried it, and the first two things in it did not work. I figured out
one of them, and I’m sure I can figure out the other, but they’re pretty
basic introductory instructions (editing a file and setting a path), so
I’m loathe to start following his instructions on more complicated
things, like downloading and compiling software.
The main problem I see with languages and scripts like Ruby on Rails,
PHP, etc. is that they will never be distributable to everyone who
really needs them because the task of installing the underlying
application is so daunting. Any discussion in the open source community
about solving that problem?
I would argue from the other direction and say the great thing about
Rails, PHP, etc. is that they don’t have to be distributable. You host
it on your server, and it can instantly be accessed by anyone.
Re: the installation tutorials–
I ran through the hivelogic installaion tutorial, once and it didn’t
work. I started the tutorial from scratch and it worked great. I would
go through the whole thing. You should be able to get it working. If
you don’t want to bother installing all of the Ruby and Rails
components, there is a great app that I use for development called
Locomotive:
It is a self-contained application that has a webserver (lighttpd),
Ruby, and Rails bundled. You don’t have to install any of the
individual components. Launch Locomotive, create a ruby application and
your
good to go. As I said, I use it for development, and it is great.
I ran through the hivelogic installaion tutorial, once and it didn’t
work. I started the tutorial from scratch and it worked great. I would
go through the whole thing. You should be able to get it working. …
In the interest of not letting problems go and providing help to people
who need it, I’m responding to this to share what went wrong. Hopefully
if someone knows the answer the next person trying the tutorial will
have it.
The hivelogic tutorial says, in a nutshell, do everything I say to do
literally and don’t deviate. So I tried, but it’s not that simple.
Step 1:
open terminal, [implicitly go to your personal root directory (type “cd” Enter),
type:
mkdir src
cd src
I did that, and it worked
Step 2:
edit it by typing
mate ~/.bash_login
That doesn’t work, because text mate doesn’t seem to operate from a
command line. But he did say use a text editor, so I used emacs (I
typed “cd…” and then “emacs .bash_login”).
Step 3:
add to the path line, if there is a file, the following:
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
I had no .bash_login in my root (tried “ls -la” and it was not listed).
So I made a new one and added that line.
Step 4:
execute the file by typing:
. ~/.bash_login
That didn’t work:
tcsh: /sw/bin/.: Permission denied
That didn’t work:
tcsh: /sw/bin/.: Permission denied
What are the permission settings on your .bash_login file? if you do:
ls -l ~/.bash_login
you should see something like rwxr-xr-x for the permission settings. If
you don’t see that (particularly the ‘x’ parts) you may need to make
your .bash_login file executable by typing:
one of them, and I’m sure I can figure out the other, but they’re pretty
basic introductory instructions (editing a file and setting a path), so
I’m loathe to start following his instructions on more complicated
things, like downloading and compiling software.
when you mention that the first two things from the hivelogic article
didn’t
work out - if you could provide a bit more detail we might be able to
better
assist. i am really hoping the ‘mkdir src && cd src’ commands didn’t
fail =)
alternatively you could use something like darwinports to manage some of
the
softwares. james duncan davidson’s article sandboxing rails with
darwinports
does a great job explaining the process: http://duncandavidson.com/essay/2006/04/portsandbox
That didn’t work:
tcsh: /sw/bin/.: Permission denied
What are the permission settings on your .bash_login file? if you do:
ls -l ~/.bash_login
you should see something like rwxr-xr-x for the permission settings. If
you don’t see that (particularly the ‘x’ parts) you may need to make
your .bash_login file executable by typing:
chmod 755 ~/.bash_login
Did that, permissions on that file properly set (-rwxr-xr-x). Tried it
again, same error:
Problem fixed, I think. The hivelogic article had a space between the
first “.” and the rest. So I took it out and retyped the command from
my root directory ("./.bash_login" and Enter"). It did nothing except
give me a new prompt, so I’m assuming it worked. Then I moved on…
Did that, permissions on that file properly set (-rwxr-xr-x). Tried it
again, same error:
tcsh: /sw/bin/.: Permission denied.
Seems to be referring to the path, not the file.
The “.” at the beginning of the command “. ~/.bash_login” seems odd, but
I checked in the tutorial and the “.” is definitely there. I’m not sure
why since that refers to hidden files that don’t normally need to be
operated on. Try the following commands:
“. filename” (dot space filename) is a shell command that means
“execute the following file”.
It didn’t work for me, but I tried “./filename” (i.e., no space) and
that did. It could be I’m running a different shell (tsch). It could
also be that my computer is special and the laws of computing and
physics don’t apply to it, which is what my IT department has been
telling me for years.
But if it worked, then I get access denied for curl (see above). Any
thoughts?
Did that, permissions on that file properly set (-rwxr-xr-x). Tried it
again, same error:
tcsh: /sw/bin/.: Permission denied.
Seems to be referring to the path, not the file.
The “.” at the beginning of the command “. ~/.bash_login” seems odd, but
I checked in the tutorial and the “.” is definitely there. I’m not sure
why since that refers to hidden files that don’t normally need to be
operated on. Try the following commands:
cd ~
then
./.bash_login
See above … I got there too, just at teh same time. Note the curl
“access denied” problem.
BTW … Your help is greatly appreciated. If I ever do get this
installed, I will repost all of this in easy-to-read format so the next
guy in my situation can take advantage, and I’ll pass along credit for
helping.
Not sure how far you are, but I made this page for anyone looking to get
the
Ruby/Rails stack rolling on OSX. It says of Intel, but it would work
will
all flavours.
everything worked great. i definitely recomment checking it out.
Dan’s HiveLogic tutorial is definitely the best way to get up and
running with rails on Mac OS X. Most of the others either have
errors, or are missing crucial pieces of information.
It gives you a clean rails and ruby install in /usr/local/ making you
immune to problems when Software Update kicks in.
everything worked great. i definitely recomment checking it out.
Dan’s HiveLogic tutorial is definitely the best way to get up and
running with rails on Mac OS X. Most of the others either have
errors, or are missing crucial pieces of information.
It gives you a clean rails and ruby install in /usr/local/ making you
immune to problems when Software Update kicks in.
–
Cheers
Koz
I’m happy to use it, but I’m not getting very far. See above: when I
get to curl, it tells me access is denied. Every step of the process
must work, or I can’t go on.