Skip to content

Commit 526fb80

Browse files
committed
added instructions to install in cluster
1 parent f0d6a46 commit 526fb80

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
DESTDIR?=/usr/bin
2+
LDIR?=/usr
23

34
default: build
45

56
build:
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

89
install:
910
@echo "Installing in ${DESTDIR}"

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,35 @@ To uninstall:
2525
sudo 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

0 commit comments

Comments
 (0)