From: shady on
Hi,

I do not have root permissions or even write permissions on some paths
as a regular user. So, I'm trying to install a package in my home
directory using the "make install" command. However, I get this famous
message of "Error: *** [blabla] Error 1", I guess becuase I'm not a
root user.

My attempt to solve this was maybe to look into the Makefile and
change some paths that "make install" try to access, and which I don't
have write permissions to; maybe that would have solved my error
message problem. But, when I opened it, I found it's really huge.

Any idea of how to "make install" while not being a root?

Thanks!
From: Kevin Kenny on
shady wrote:
> Any idea of how to "make install" while not being a root?

Start over from 'make distclean'.

Run the 'configure' script and this time give it
--prefix=/path/where/you/want/it

If you have write permission to /path/where/you/want/it,
'make install' will work fine.
--
73 de ke9tv/2, Kevin
From: shady on
On Apr 28, 12:06 pm, Kevin Kenny <kenn...(a)acm.org> wrote:
> shady wrote:
> > Any idea of how to "make install" while not being a root?
>
> Start over from 'make distclean'.
>
> Run the 'configure' script and this time give it
> --prefix=/path/where/you/want/it
>
> If you have write permission to /path/where/you/want/it,
> 'make install' will work fine.
> --
> 73 de ke9tv/2, Kevin

Thank you, Kevin. It worked fine for this package. However, when I
tried to do the same for another, it showed a bit of success with the
configure and make commands. But, when I typed the "make install" one,
I got the make error written slightly different this way:

make[1]: *** [install] Error 1 ; where the 1 in the square brackets is
added this time.

Anyway, this error was bi-passed, then I got the Error 2 message which
halted the "make install". Error 2 message looked like this:

make: *** [install] Error 2

Any tips?

Thanks!
From: Kevin Kenny on
shady wrote:
> Thank you, Kevin. It worked fine for this package. However, when I
> tried to do the same for another, it showed a bit of success with the
> configure and make commands. But, when I typed the "make install" one,
> I got the make error written slightly different this way:
>
> make[1]: *** [install] Error 1 ; where the 1 in the square brackets is
> added this time.
>
> Anyway, this error was bi-passed, then I got the Error 2 message which
> halted the "make install". Error 2 message looked like this:
>
> make: *** [install] Error 2
>
> Any tips?

If it's not Tcl itself that you're building, but some other package,
it would be helpful to tell us what package. Also, usually, the
"Error 1" line is preceded by a different error message that is likely
to be more informative. (The "Error 1" simply indicates that a
subprocess has exited with a nonzero status code.)

--
73 de ke9tv/2, Kevin
From: phil on
A lot of tcl packages assume you are using /usr/bin/tclsh
(and dont five you options of overriding it at configure time. Tsk
tsk).
The package ends up installing themselves in the "info library" that /
usr/bin/tclsh returns.

Edit the makefile and look for /usr/bin/tclsh...
and change it to "your special compiled version of tcl"...

Made up example:

TCLMAKEVAR=/usr/bin/tclsh
to
TCLMAKEVAR=/home/me/bin/tclsh


 |  Next  |  Last
Pages: 1 2
Prev: tcl and powershell
Next: Delete spaces