install without sudo privilege?

12 views
Skip to first unread message

siddii

unread,
Jul 26, 2010, 4:43:30 PM7/26/10
to nodejs
Is there a way to install nodejs with sudo privilege?

I am trying to install it on my hosting account machine, where I don't
have sudo privilege.

Thanks,

siddii

unread,
Jul 26, 2010, 4:47:15 PM7/26/10
to nodejs
sorry.. I meant WITHOUT super user privilege :)

Timothy Caswell

unread,
Jul 26, 2010, 4:48:28 PM7/26/10
to nod...@googlegroups.com
just change the prefix to some folder you control

./configure --prefix=$HOME/node

> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>

Isaac Schlueter

unread,
Jul 26, 2010, 4:55:09 PM7/26/10
to nod...@googlegroups.com
Or: sudo chmod -R $USER /usr/local

siddii

unread,
Jul 26, 2010, 5:03:07 PM7/26/10
to nodejs
awesome... It works.. Thanks :)

Timothy Caswell

unread,
Jul 26, 2010, 5:04:33 PM7/26/10
to nod...@googlegroups.com
Isaac, I think that's difficult do to with sudo. ;)

Mihai Călin Bazon

unread,
Jul 27, 2010, 1:30:27 AM7/27/10
to nod...@googlegroups.com
On Mon, Jul 26, 2010 at 11:04 PM, Timothy Caswell <t...@creationix.com> wrote:
> Isaac, I think that's difficult do to with sudo. ;)

Nope, variables are replaced by the shell /before/ running the command:

$ echo $USER
mishoo
$ sudo echo $USER
mishoo
$ sudo bash
# echo $USER
root

Cheers,
-M.

Timothy Caswell

unread,
Jul 27, 2010, 1:55:23 AM7/27/10
to nod...@googlegroups.com
Of course Isaac's suggestion works if you have sudo access, my point is that it's hard to be a solution to the question asked originally.

"Installing WITHOUT sudo"

I think that rules out any solution using "sudo". ;)

I was just poking fun as Isaac for misreading the problem.

Isaac Schlueter

unread,
Jul 27, 2010, 2:06:10 AM7/27/10
to nod...@googlegroups.com
Oh, I just read it as without using sudo each time. But yeah, if
you're on a shared host or something without root access at *all*,
then that won't work of course.

I like to consider /usr/local as "mine", and /usr as "system". Since
my machines are all mostly single-user, it works out.

--i

codecraig

unread,
Jul 27, 2010, 4:54:40 PM7/27/10
to nodejs
So I did the ./configure --prefix=$HOME/node then I tried make and
got...

Build failed: -> task failed (err #-1):
{task: cc ares_free_string.c -> ares_free_string_1.o}
make: *** [all] Error 1


Any suggestion on what I can do about that? (this is on a shared host
as well).

Thanks
> >> For more options, visit this group athttp://groups.google.com/group/nodejs?hl=en.

mscdex

unread,
Jul 27, 2010, 5:22:27 PM7/27/10
to nodejs
On Jul 27, 4:54 pm, codecraig <codecr...@gmail.com> wrote:
> So I did the ./configure --prefix=$HOME/node then I tried make and
> got...
>
> Build failed:  -> task failed (err #-1):
>         {task: cc ares_free_string.c -> ares_free_string_1.o}
> make: *** [all] Error 1
>
> Any suggestion on what I can do about that? (this is on a shared host
> as well).

The actual errors are bound to come before that output. Can you paste
the preceding output as well?

codecraig

unread,
Jul 27, 2010, 5:39:21 PM7/27/10
to nodejs
hmm...i must have messed up my .configure earlier...b/c now it all
worked and node is installed. really strange...thanks for the help,
guess I'll post back if something goes wrong :)

codecraig

unread,
Jul 27, 2010, 5:52:27 PM7/27/10
to nodejs
installed and runs...now have to figure out how to get my shared host
to let me respond on port 80 so that when you visit my URL you hit my
node app and not their apache stuff.

Dean Landolt

unread,
Jul 27, 2010, 6:01:18 PM7/27/10
to nod...@googlegroups.com
On Tue, Jul 27, 2010 at 5:52 PM, codecraig <code...@gmail.com> wrote:
installed and runs...now have to figure out how to get my shared host
to let me respond on port 80 so that when you visit my URL you hit my
node app and not their apache stuff.


Good luck with that...

You'll probably have to reverse proxy to node. Also, be warned: shared hosts tend to kill long-running processes, so I'd keep an eye on that if I were you.

Chris Winberry

unread,
Jul 27, 2010, 6:01:32 PM7/27/10
to nod...@googlegroups.com

Not going to happen unless you are allowed to edit the apache config such that apache acts as a reverse proxy to a node instance running on another port.

Isaac Schlueter

unread,
Jul 27, 2010, 6:03:40 PM7/27/10
to nod...@googlegroups.com
Just out of curiousity, why are you using a shared host? Xen VPSes
are super cheap these days.
I use http://prgmr.com and http://rackspacecloud.com and they're both
quite nice.

--i

codecraig

unread,
Jul 27, 2010, 6:51:53 PM7/27/10
to nodejs
true, just asking b/c i have a shared host acct right now...might as
well try that first :)

plus I only pay $5.55/mo..but rackspace has one for $10.95...might
give it a shot...just toying right now.

On Jul 27, 6:03 pm, Isaac Schlueter <i...@izs.me> wrote:
> Just out of curiousity, why are you using a shared host?  Xen VPSes
> are super cheap these days.
> I usehttp://prgmr.comandhttp://rackspacecloud.comand they're both
> quite nice.
>
> --i
>
>
>
> On Tue, Jul 27, 2010 at 15:01, Chris Winberry <cpt.obvi...@gmail.com> wrote:
> > Not going to happen unless you are allowed to edit the apache config such
> > that apache acts as a reverse proxy to a node instance running on another
> > port.
>

Larz

unread,
Jul 28, 2010, 12:35:34 AM7/28/10
to nodejs
I'm new to node.js and this forum, but I'm setting up VPS hosting for
node as we speak. Hoping to help out some fellow coders in the short
term and the long term learn a lot more about node and make a little
dough to continue my indulgences.

http://blog.nodejshost.com is where it all starts. website and other
formal stuff coming soon.

the vps servers will be built to suit but start out free at 256mb/5gb.
Full access to everything in the server. I'll deal with the bandwidth
when the problem arises. I'm going to build out 20-25 of these in the
next few days.

Good luck!
Larry


On Jul 27, 4:51 pm, codecraig <codecr...@gmail.com> wrote:
> true, just asking b/c i have a shared host acct right now...might as
> well try that first :)
>
> plus I only pay $5.55/mo..but rackspace has one for $10.95...might
> give it a shot...just toying right now.
>
> On Jul 27, 6:03 pm, Isaac Schlueter <i...@izs.me> wrote:
>
>
>
> > Just out of curiousity, why are you using a shared host?  Xen VPSes
> > are super cheap these days.
> > I usehttp://prgmr.comandhttp://rackspacecloud.comandthey're both
Reply all
Reply to author
Forward
0 new messages