File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11DESTDIR? =/usr/bin
2+ LDIR? =/usr
23
34default : build
45
56build :
6- gcc -Wall main.c -lncurses -ltinfo - o hexitor.o
7+ gcc -Wall -I $( LDIR ) /include -I $( LDIR ) /include/ncurses main.c -o hexitor.o -L $( LDIR ) /lib -lncurses -ltinfo
78
89install :
910 @echo " Installing in ${DESTDIR} "
Original file line number Diff line number Diff line change @@ -25,6 +25,35 @@ To uninstall:
2525sudo make uninstall
2626```
2727
28+ # Installation without root
29+
30+ If you don't have root access and there is not libncurses installed,
31+ first install ncurses
32+
33+ ``` bash
34+ wget https://invisible-mirror.net/archives/ncurses/ncurses-6.2.tar.gz
35+ tar -xzf ncurses-6.2.tar.gz
36+ cd ncurses-6.2
37+ ./configure --prefix=$HOME /ncurses
38+ make
39+ make install
40+ cd ..
41+ rm -rf ncurses-6.2*
42+ ```
43+
44+ Then compile and install hexitor
45+
46+ ``` bash
47+ make LDIR=$HOME /ncurses
48+ make DESTDIR=$HOME /bin install
49+ ```
50+
51+ to uninstall
52+
53+ ``` bash
54+ make DESTDIR=$HOME /bin uninstall
55+ ```
56+
2857# Usage
2958
3059### Opening a file
You can’t perform that action at this time.
0 commit comments