@@ -36,24 +36,33 @@ to get started with a standard configuration:
3636When 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
4247The 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
4651When 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
5261The 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
101110Uninstall libmypaint with ` make uninstall ` .
102111
@@ -109,11 +118,22 @@ Make sure that pkg-config can see libmypaint before trying to build with it.
109118If it's not found, you'll need to add the relevant pkgconfig directory to
110119the ` 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