diff options
author | Andrew Williams <andy@andywilliams.me> | 2018-01-05 07:48:41 -0800 |
---|---|---|
committer | apache <apache@e5-web1.enlightenment.org> | 2018-01-05 07:48:41 -0800 |
commit | 98fa7aaaee5fb0775693c9251db3ebde133bc3cb (patch) | |
tree | a11bf2d8303f8c9e0d3588866b37ef997a2b1228 /pages/docs | |
parent | a8cdcad5a4c680e4ab760af95222965a69339de3 (diff) |
Wiki page fedora-start.md changed with summary [created] by Andrew Williams
Diffstat (limited to 'pages/docs')
-rw-r--r-- | pages/docs/distros/fedora-start.md.txt | 178 | ||||
-rw-r--r-- | pages/docs/distros/fedora-start.txt | 33 |
2 files changed, 178 insertions, 33 deletions
diff --git a/pages/docs/distros/fedora-start.md.txt b/pages/docs/distros/fedora-start.md.txt new file mode 100644 index 000000000..fd1af002a --- /dev/null +++ b/pages/docs/distros/fedora-start.md.txt | |||
@@ -0,0 +1,178 @@ | |||
1 | --- | ||
2 | ~~Title: Installing EFL on Fedora~~ | ||
3 | ~~NOCACHE~~ | ||
4 | --- | ||
5 | |||
6 | # Installing EFL on Fedora # | ||
7 | [The *Enlightenment Foundation Libraries (EFL)*](about-efl.md) power millions of systems from mobile phones to set-top boxes, desktops, laptops, game systems and more. You'll need EFL if you want to develop apps for Enlightenment and for any of the devices that use Enlightenment for its visual interface. | ||
8 | |||
9 | This tutorial describes several ways to install EFL on your system. You will only need to use one of these. Select your chosen method using the index on the right. | ||
10 | |||
11 | Many distributions offer EFL as an installable package from their default repositories. In this case you only need to use your distribution's software management system to install. However most versions of EFL in default repositories are out of date and will not compile more recent Enlightenment applications. If this is not an issue for you, read through the ["From Distribution Repositories"](#From_Distribution_Repositories) section below. | ||
12 | |||
13 | Distributions often provide a special repository maintained by users or a method of integrating a bleeding edge version of EFL with your software management system. This means that once installed you can keep EFL current just by running system updates. If your distribution offers this, take a look at the section ["Installing from a Special Repository"](#Installing_from_a_Special_Repository). | ||
14 | |||
15 | The Enlightenment developers provide a pre-packaged source of EFL. Although not bleeding edge it is up to date and considered stable for production environments. You can download, compile and install it yourself by following the instructions in ["Installing from Packaged Source"](#Installing_from_Packaged_Source). | ||
16 | |||
17 | You can also download the source code for the most recent version from the EFL git repositories. This will provide you with the latest code, which is updated on a nightly basis. To get started, read the section ["Installing from Git"](#Installing_from_Git). | ||
18 | |||
19 | Whichever installation method you use, visit ["Compiling EFL Applications"](#Compiling_EFL_Applications) to discover how to compile your Enlightenment applications. | ||
20 | |||
21 | ## From Distribution Repositories ## | ||
22 | |||
23 | Fedora includes an *efl* packge in its default repositories. This makes installing EFL a simple task: | ||
24 | |||
25 | ```bash | ||
26 | sudo dnf install efl | ||
27 | ``` | ||
28 | |||
29 | Fedora does not come with *gcc* or *cpp* preinstalled. You'll need to install these to compile EFL-based applications: | ||
30 | |||
31 | ```bash | ||
32 | sudo dnf install gcc cpp | ||
33 | ``` | ||
34 | |||
35 | Note that the version of EFL in Fedoras's official repositories may not be the most recent release. This can cause problems when trying to compile examples from tutorials in this documentation. If this is the case, install a more recent version of EFL using one of the following methods: | ||
36 | |||
37 | ## Installing from a Special Repository ## | ||
38 | |||
39 | Fedora does not maintain a repository with a nightly, up to date, version of EFL. There is a [user-maintained repository containing a nightly version of Enlightenment](http://download.opensuse.org/repositories/X11:/Enlightenment:/Nightly/Fedora_Rawhide/). Unfortunately installing packages with duplicate names from user-maintained repository is very complex. It's much easier to install and maintain EFL installing it from Enlightenments official packages and git repository, so this should be your first resort. | ||
40 | |||
41 | ## Installing from Packaged Source ## | ||
42 | |||
43 | There are two versions of EFL available from the Enlightenment website. One is the nightly bleeding edge version which you can [download using git](#Installing_from_Git). The other is packaged and available from the [EFL's download site](https://download.enlightenment.org/rel/libs/efl/) which is the focus of this section. | ||
44 | |||
45 | ### Step 1: Downloading Stable Version ### | ||
46 | |||
47 | [Download the latest version of EFL](https://download.enlightenment.org/rel/libs/efl/) and check it against its SHA256 hash: | ||
48 | |||
49 | ```bash | ||
50 | wget https://download.enlightenment.org/rel/libs/efl/efl-X.XX.X.tar.xz | ||
51 | wget https://download.enlightenment.org/rel/libs/efl/efl-X.XX.X.tar.xz.sha256 | ||
52 | cat efl-X.XX.X.tar.xz.sha256; sha256sum efl-X.XX.X.tar.xz | ||
53 | ``` | ||
54 | |||
55 | Note that you will have to change ``X.XX.X`` to the current version of EFL. | ||
56 | |||
57 | ### Step 2: Unpacking ### | ||
58 | |||
59 | Once you have downloaded the archive file containing EFL unpack it with: | ||
60 | |||
61 | ```bash | ||
62 | tar xvf efl-X.XX.X.tar.xz | ||
63 | ``` | ||
64 | |||
65 | This will create a folder named *efl-X.XX.X*. | ||
66 | |||
67 | ### Step 3: Installing Dependencies ### | ||
68 | |||
69 | Before you can compile and install EFL, you will have to install some software packages EFL requires: | ||
70 | |||
71 | ```bash | ||
72 | sudo dnf install gcc gcc-c++ doxygen openssl-devel systemd-devel libjpeg-turbo-devel glib2-devel gstreamer1-devel luajit-devel freetype-devel fontconfig-devel fribidi-devel xorg-x11-server-devel libXrender-devel giflib-devel libtiff-devel poppler-devel poppler-cpp-devel libspectre-devel LibRaw-devel librsvg2-devel libmount-devel dbus-devel pulseaudio-libs-devel libsndfile-devel libXcursor-devel libXcomposite-devel libXinerama-devel libXrandr-devel libXtst-devel libXScrnSaver-devel bullet-devel gstreamer1-plugins-base-devel | ||
73 | |||
74 | ``` | ||
75 | |||
76 | ### Step 4: Building and Installing ### | ||
77 | |||
78 | Once you have installed all dependencies ``cd`` into the *efl-X.XX.X* folder and run: | ||
79 | |||
80 | ```bash | ||
81 | ./configure | ||
82 | make | ||
83 | sudo make install | ||
84 | ``` | ||
85 | |||
86 | This will configure the files needed for compiling and installation. | ||
87 | |||
88 | ### Step 5: Carrying out Post Installation Tasks ### | ||
89 | |||
90 | As you are not installing to */usr* but to */usr/local*, you will have to ensure that some files are visible to *dbus*: | ||
91 | |||
92 | ```bash | ||
93 | sudo ln -s /usr/local/share/dbus-1/services/org.enlightenment.Ethumb.service /usr/share/dbus-1/services/org.enlightenment.Ethumb.service | ||
94 | ``` | ||
95 | |||
96 | You also have to make some files visible to *pkgconfig*. To do this open */etc/profile* in a text editor as root (using ``sudo vi /etc/profile`` for instance) and add the following line to the end: | ||
97 | |||
98 | ```bash | ||
99 | export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig | ||
100 | ``` | ||
101 | |||
102 | You may also need to refresh your library path to make sure your apps can find the EFL libraries: | ||
103 | |||
104 | ```bash | ||
105 | sudo ldconfig | ||
106 | ``` | ||
107 | |||
108 | ## Installing from Git ## | ||
109 | |||
110 | Download the bleeding edge version of EFL by cloning it from the git repository. | ||
111 | |||
112 | ### Step 1: Installing git and Cloning ### | ||
113 | |||
114 | By default, *git* is installed in Fedora, so the first step is to clone EFL's source code: | ||
115 | |||
116 | ```bash | ||
117 | git clone https://git.enlightenment.org/core/efl.git | ||
118 | ``` | ||
119 | |||
120 | This will create a a directory named *efl/*. | ||
121 | |||
122 | ### Step 2: Installing Dependencies ### | ||
123 | |||
124 | You now need to install some tools to build the configuration file: | ||
125 | |||
126 | ```bash | ||
127 | sudo dnf install autoconf libtool gettext-devel | ||
128 | ``` | ||
129 | |||
130 | Install the dependencies specific for EFL too: | ||
131 | |||
132 | ```bash | ||
133 | sudo dnf install gcc gcc-c++ doxygen openssl-devel systemd-devel libjpeg-turbo-devel glib2-devel gstreamer1-devel luajit-devel freetype-devel fontconfig-devel fribidi-devel xorg-x11-server-devel libXrender-devel giflib-devel libtiff-devel poppler-devel poppler-cpp-devel libspectre-devel LibRaw-devel librsvg2-devel libmount-devel dbus-devel pulseaudio-libs-devel libsndfile-devel libXcursor-devel libXcomposite-devel libXinerama-devel libXrandr-devel libXtst-devel libXScrnSaver-devel bullet-devel gstreamer1-plugins-base-devel | ||
134 | ``` | ||
135 | |||
136 | ### Step 3: Configuring the Software ### | ||
137 | |||
138 | Now you can ``cd`` into the *efl\* directory and run the *autoreconf* script to create and configure the software ready for compilation: | ||
139 | |||
140 | ```bash | ||
141 | ./autogen.sh | ||
142 | ``` | ||
143 | |||
144 | Once configured, you can compile the software with: | ||
145 | |||
146 | ```bash | ||
147 | make | ||
148 | sudo make install | ||
149 | ``` | ||
150 | |||
151 | ### Step 4: Carrying out Post Installation Tasks ### | ||
152 | |||
153 | As you are not installing to */usr* but to */usr/local*, you will have to ensure that some files are visible to *dbus*: | ||
154 | |||
155 | ```bash | ||
156 | sudo ln -s /usr/local/share/dbus-1/services/org.enlightenment.Ethumb.service /usr/share/dbus-1/services/org.enlightenment.Ethumb.service | ||
157 | |||
158 | ``` | ||
159 | |||
160 | You also have to make some files visible to *pkgconfig*. To do this, open */etc/profile* in a text editor as root (using for example ``sudo vi /etc/profile``) and add the following line to the end: | ||
161 | |||
162 | ```bash | ||
163 | export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig | ||
164 | ``` | ||
165 | |||
166 | You may also need to refresh your library path to make sure your apps can find the EFL libraries: | ||
167 | |||
168 | ```bash | ||
169 | sudo ldconfig | ||
170 | ``` | ||
171 | |||
172 | ## Troubleshooting ## | ||
173 | |||
174 | If you are having problems compiling and installing EFL, you can come and seek advice on any of [our IRC channels](https://www.enlightenment.org/contact) or [post a ticket to our Phabricator](https://phab.enlightenment.org). | ||
175 | |||
176 | ## Installing on Other Operating Systems ## | ||
177 | |||
178 | If you would like to install EFL on a different operating system visit the [Setting up a C Development Environment page](start.md). \ No newline at end of file | ||
diff --git a/pages/docs/distros/fedora-start.txt b/pages/docs/distros/fedora-start.txt deleted file mode 100644 index 2aaaff553..000000000 --- a/pages/docs/distros/fedora-start.txt +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | ~~Title: EFL on Fedora~~ | ||
2 | |||
3 | ==== Compiling from Source ==== | ||
4 | Satisfying dependencies under **Fedora 26/27 Workstation** (the RPM Fusion Free repository must be active) and recommended packages: | ||
5 | |||
6 | <code bash> | ||
7 | sudo dnf install automake bluez-libs-devel bullet-devel ccache check-devel curl-devel \ | ||
8 | dbus-devel doxygen fontconfig-devel freetype-devel fribidi-devel gcc gcc-c++ \ | ||
9 | gdb gettext-devel giflib-devel glib2-devel gstreamer1-devel gstreamer1-plugins-base-devel \ | ||
10 | harfbuzz-devel ibus-devel ImageMagick kernel-devel libdrm-devel libinput-devel \ | ||
11 | libjpeg-turbo-devel libpng-devel mesa-libEGL-devel mesa-libGL-devel mesa-libGLES-devel \ | ||
12 | libmount-devel libproxy-devel LibRaw-devel librsvg2-devel libsndfile-devel \ | ||
13 | libspectre-devel libtiff-devel libtool libunwind-devel libwebp-devel libX11-devel \ | ||
14 | libxkbcommon-devel libxkbfile-devel libXcursor-devel libXdamage-devel libXext-devel \ | ||
15 | libXinerama-devel libXScrnSaver-devel libXtst-devel luajit-devel lz4-devel make \ | ||
16 | mesa-libgbm-devel mesa-libwayland-egl-devel meson ninja-build openjpeg2-devel \ | ||
17 | openssl-devel pam-devel perf poppler-cpp-devel pulseaudio-libs-devel \ | ||
18 | python3-pip scim-devel systemd-devel texlive-base uuid-devel \ | ||
19 | valgrind-devel wayland-devel wayland-protocols-devel \ | ||
20 | xcb-util-keysyms-devel xine-lib-devel xorg-x11-server-Xephyr | ||
21 | </code> | ||
22 | |||
23 | <note warning>You may need to install some wayland packages from the Rawhide repository in order to build the EFL with Wayland support. Please make sure you really know what you are doing before you start upgrading!</note> | ||
24 | |||
25 | Then go to [[/docs/distros/]] to learn how to install the whole thing ;-) | ||
26 | |||
27 | ==== Binary Packages ==== | ||
28 | |||
29 | **Fedora 26/27**, simply run this command: | ||
30 | |||
31 | <code bash> | ||
32 | sudo dnf install enlightenment terminology | ||
33 | </code> | ||