Application: PgModeler 0.5.2
Operating System: Linux – Fedora Core 19 (Schrödinger’s Cat)
Architecture: x86_64
Step 1
Download the package.
Terminal commands
1
2
3
4
5
6
7
8
|
# Change directory
user
>
cd
/
home
/
user
/
Downloads
# In /home/user/Downloads
# Download package
user
>
wget
http
:
//www.pgmodeler.com.br/releases/0.5.2/pgmodeler-0.5.2-linux64.tar.gz
|
Step 2
Extract the archive package.
Terminal commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# In /home/user/Downloads
# Extract
user
>
tar
-
zxvf
pgmodeler
-
0.5.2
-
linux64
.
tar
.
gz
# Make and change directory
user
>
cd
/
home
/
user
user
>
mkdir
Apps
user
>
cd
Apps
user
>
mkdir
pgmodeler
# In /home/user/Apps
# Copy
user
>
cp
-
f
-
R
/
home
/
user
/
Downloads
/
pgmodeler
-
0.5.2
-
linux64
/
*
pgmodeler
/
# Delete (Optional)
# In /home/user/Downloads
# Remove package tar.gz
user
>
rm
-
f
/
home
/
user
/
Downloads
/
pgmodeler
-
0.5.2
-
linux64
.
tar
.
gz
# Remove directory
user
>
rm
-
R
/
home
/
user
/
Downloads
/
pgmodeler
-
0.5.2
-
linux64
|
The application will be located at /home/user/Apps/pgmodeler
Step 3
In order to make it run, you need to setup required environment variables.
Terminal commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# In /home/user/Apps
# Change directory
user
>
cd
pgmodeler
# In /home/user/Apps/pgmodeler
# Make tmp directory
user
>
mkdir
tmp
# In /home/user/Apps/pgmodeler
# Copy pgmodeler.vars to /home/user/
user
>
cp
pgmodeler
.
vars
/
home
/
user
/
# Change directory
user
>
cd
/
home
/
user
/
# In /home/user/
# Edit pgmodeler.vars
user
>
vi
pgmodeler
.
vars
# Vi shortcuts
# - i for insert
# - :q! for quit without saving
# - :x for write and exit
# Insert
export
PGMODELER_ROOT
=
"/home/user/Apps/pgmodeler"
export
PGMODELER_CONF_DIR
=
"$PGMODELER_ROOT/conf"
export
PGMODELER_SCHEMAS_DIR
=
"$PGMODELER_ROOT/schemas"
export
PGMODELER_LANG_DIR
=
"$PGMODELER_ROOT/lang"
export
PGMODELER_TMP_DIR
=
"$PGMODELER_ROOT/tmp"
export
PGMODELER_PLUGINS_DIR
=
"$PGMODELER_ROOT/plugins"
export
LD_LIBRARY_PATH
=
$
LD_LIBRARY_PATH
:
"$PGMODELER_ROOT"
export
PATH
=
$
PATH
:
$
PGMODELER_ROOT
# Write and exit
# In /home/user/
# Edit .bash_profile
user
>
vi
.
bash_profile
# Vi shortcuts
# - i for insert
# - :q! for quit without saving
# - :x for write and exit
# Insert at the end the file
.
/
home
/
user
/
pgmodeler
.
vars
# Write and Exit
# In /home/user/
# Reload environment variables
user
>
source
.
bash_profile
|
Step 4
Required library.
Terminal commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Change directory
user
>
cd
/
home
/
user
/
Apps
/
pgmodeler
# In /home/user/Apps/pgmodeler
# Run application
user
>
pgmodeler
&
.
/
pgmodeler
:
error
while
loading
shared
libraries
:
libQt5PrintSupport
.
so
.
5
:
cannot
open
shared
object
file
:
No
such
file
or
directory
# Install qt5-qtbase-x11
# Switch to root
user
>
su
Password
:
root
>
yum
install
qt5
-
qtbase
-
x11
# Switch to user
root
>
exit
|
Step 5
Run application.
Terminal commands
1
2
3
4
5
|
# In /home/user/Apps/pgmodeler
# Execute
user
>
pgmodeler
&
|