Skip to content

Commit 6b05c9a

Browse files
author
Albert Westra
authored
Merge pull request #190 from AesaraB/opensuse-build
README.md: OpenSUSE dependencies, better syntax
2 parents 826069d + 2eeda6a commit 6b05c9a

File tree

1 file changed

+31
-17
lines changed

1 file changed

+31
-17
lines changed

README.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,45 @@ License: ISC, see [COPYING](./COPYING) for details.
3030
On recent Debian-like systems, you can type the following
3131
to get started with a standard configuration:
3232

33-
$ sudo apt install -y build-essential
34-
$ sudo apt install -y libjson-c-dev libgirepository1.0-dev libglib2.0-dev
33+
# apt install -y build-essential
34+
# apt install -y libjson-c-dev libgirepository1.0-dev libglib2.0-dev
3535

3636
When building from git:
3737

38-
$ sudo apt install -y python autotools-dev intltool gettext libtool
38+
# apt install -y python autotools-dev intltool gettext libtool
3939

4040
You might also try using your package manager:
4141

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
42+
# apt build-dep mypaint # will get additional deps for MyPaint (GUI)
43+
# apt build-dep libmypaint # may not exist; included in mypaint
4444

4545
### Install dependencies (Red Hat and derivatives)
4646

4747
The following works on a minimal CentOS 7 installation:
4848

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

5151
When building from git, you'll want to add:
5252

53-
$ sudo yum install -y git python autoconf intltool gettext libtool
53+
# yum install -y git python autoconf intltool gettext libtool
5454

5555
You might also try your package manager:
56-
57-
$ sudo yum builddep libmypaint
56+
57+
# yum builddep libmypaint
58+
59+
### Install dependencies (OpenSUSE)
60+
61+
Works with a fresh OpenSUSE Tumbleweed Docker image:
62+
63+
# zypper install gcc13 gobject-introspection-devel libjson-c-devel glib2-devel
64+
65+
When building from git:
66+
67+
# zypper install git python311 autoconf intltool gettext-tools libtool
68+
69+
Package manager:
70+
71+
# zypper install libmypaint0
5872

5973
## Build and install
6074

@@ -67,8 +81,8 @@ The traditional setup works just fine.
6781

6882
$ ./autogen.sh # Only needed when building from git.
6983
$ ./configure
70-
$ sudo make install
71-
$ sudo ldconfig
84+
# make install
85+
# ldconfig
7286

7387
### Maintainer mode
7488

@@ -110,7 +124,7 @@ This runs all the unit tests.
110124

111125
### Install
112126

113-
$ sudo make install
127+
# make install
114128

115129
Uninstall libmypaint with `make uninstall`.
116130

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

126-
$ sudo sh -c "echo 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' >>/etc/environment"
140+
# sh -c "echo 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' >>/etc/environment"
127141

128142
Make sure ldconfig can see libmypaint as well
129143

130-
$ sudo ldconfig -p |grep -i libmypaint
144+
# ldconfig -p |grep -i libmypaint
131145

132146
If it's not found, you'll need to add the relevant lib directory to
133147
the LD_LIBRARY_PATH:
134148

135149
$ export LD_LIBRARY_PATH=/usr/local/lib
136-
$ sudo sh -c "echo 'LD_LIBRARY_PATH=/usr/local/lib' >>/etc/environment
150+
# sh -c "echo 'LD_LIBRARY_PATH=/usr/local/lib' >>/etc/environment
137151

138152
Alternatively, you may want to enable /usr/local for libraries. Arch and Redhat derivatives:
139153

140-
$ sudo sh -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/usrlocal.conf"
141-
$ sudo ldconfig
154+
# sh -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/usrlocal.conf"
155+
# ldconfig
142156

143157
## Contributing
144158

0 commit comments

Comments
 (0)