Skip to content

Commit a20f91e

Browse files
authored
Update README.md for build instructions
add sudo, build-dep tips, and ld.conf.so tips
1 parent bf6e119 commit a20f91e

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

README.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,33 @@ to get started with a standard configuration:
3636
When building from git:
3737

3838
$ sudo apt install -y python2.7 autotools-dev intltool gettext libtool
39+
40+
You might also try using your package manager:
41+
42+
$ sudo apt build-dep mypaint # will get additional deps for MyPaint (GUI)
43+
$ sudo apt build-dep libmypaint # may not exist; included in mypaint
3944

4045
### Install dependencies (Red Hat and derivatives)
4146

4247
The following works on a minimal CentOS 7 installation:
4348

44-
# yum install -y gcc gobject-introspection-devel json-c-devel glib2-devel
49+
$ sudo yum install -y gcc gobject-introspection-devel json-c-devel glib2-devel
4550

4651
When building from git, you'll want to add:
4752

48-
# yum install -y git python autoconf intltool gettext libtool
53+
$ sudo yum install -y git python autoconf intltool gettext libtool
54+
55+
You might also try your package manager:
56+
57+
$ sudo yum builddep libmypaint
4958

5059
## Build and install
5160

5261
The traditional setup works just fine.
5362

5463
$ ./autogen.sh # Only needed when building from git.
5564
$ ./configure
56-
$ make install
65+
$ sudo make install
5766
$ sudo ldconfig
5867

5968
### Maintainer mode
@@ -96,7 +105,7 @@ This runs all the unit tests.
96105

97106
### Install
98107

99-
$ make install
108+
$ sudo make install
100109

101110
Uninstall libmypaint with `make uninstall`.
102111

@@ -109,11 +118,22 @@ Make sure that pkg-config can see libmypaint before trying to build with it.
109118
If it's not found, you'll need to add the relevant pkgconfig directory to
110119
the `pkg-config` search path. For example, on CentOS, with a default install:
111120

112-
$ echo PKG_CONFIG_PATH=/usr/local/lib/pkgconfig >>/etc/environment
121+
$ sudo sh -c "echo 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' >>/etc/environment"
122+
123+
Make sure ldconfig can see libmypaint as well
124+
125+
$ sudo ldconfig -p |grep -i libmypaint
126+
127+
If it's not found, you'll need to add the relevant lib directory to
128+
the LD_LIBRARY_PATH:
113129

114-
For Arch and derivatives you may have to enable /usr/local for libraries:
130+
$ export LD_LIBRARY_PATH=/usr/local/lib
131+
$ sudo sh -c "echo 'LD_LIBRARY_PATH=/usr/local/lib' >>/etc/environment
115132

116-
$ echo '/usr/local/lib' > /etc/ld.so.conf.d/usrlocal.conf
133+
Alternatively, you may want to enable /usr/local for libraries. Arch and Redhat derivatives:
134+
135+
$ sudo sh -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/usrlocal.conf"
136+
$ sudo ldconfig
117137

118138
## Contributing
119139

0 commit comments

Comments
 (0)