1 |
>>>>> Writing an ebuild is best, but sometimes you just want to give a |
2 |
>>>>> program a try without writing an ebuild (like everyone else running |
3 |
>>>>> Linux does) and a scruft script enables you to do that without making |
4 |
>>>>> a mess of your system. |
5 |
>>>> |
6 |
>>>> Not to be picky, it's just an idea but in that case, isn't it way |
7 |
>>>> easier to |
8 |
>>>> just ./configure --prefix=/some/dir/inside/yourhome or edit a makefile? |
9 |
>>> |
10 |
>>> I have to say I know nothing about compiling or installing outside of |
11 |
>>> portage. Does specifying a prefix like that work? You get a fully |
12 |
>>> functional program with nothing installed outside of some/dir? |
13 |
>> |
14 |
>> Yes, it's the "normal way" for people that don't use package managers. |
15 |
>> I almost always install into my home directory for programs that |
16 |
>> aren't in portage (or make my own ebuild if it is a simple one). Or |
17 |
>> depending on what program it is, create a user for it and run it under |
18 |
>> that user account so it can't touch anything else. |
19 |
> |
20 |
> Yes. It's mostly that simple. Though sometimes in more complex programs |
21 |
> you might need some extra setup (i.e. configure some variable so the program |
22 |
> can find its path to the required libs or so). It really depends on the |
23 |
> program, |
24 |
|
25 |
So for example, miro needs xine to play videos. If I ./configure miro |
26 |
with --prefix=/usr/local, it will install to /usr/local/miro or |
27 |
similar? Then I would need to point it to xine and possibly others |
28 |
since it wasn't configured like --prefix=/ ? Is all this done as |
29 |
root? |
30 |
|
31 |
> however if you open the readme or install file and take a look 99% of the |
32 |
> times the procedure should be described there. Not all programs use the |
33 |
> tipical make system, so you should always check the docs, and in any case |
34 |
> save the source tree for further refference, or just to be able to make |
35 |
> uninstall. |
36 |
|
37 |
Couldn't I just uninstall with 'rm -rf /usr/local/miro' ? |
38 |
|
39 |
- Grant |
40 |
|
41 |
|
42 |
> Note that this is the cleanest method, and in some cases it's the only option |
43 |
> (i.e. you don't have root access to the machine, so you have to build in your |
44 |
> home dir). |
45 |
> |
46 |
>> |
47 |
>> Also, a lot of more simple programs don't even need to be installed. |
48 |
>> Just untar it, configure it, make it and run it from the directory in |
49 |
>> which the source resides. |
50 |
> |
51 |
> This work for smaller programs very well. Just make and launch it. |