I recently installed fedora 33 on my machin while trying to install pgadmin4 i followed tutorial at
https://computingforgeeks.com/how-to-install-pgadmin-on-centos-fedora/
During installation i found that pgadmin4-python3-flask-compress-1.4.0-1.fc33.noarch.rpm in not available
in any repos.After quite few googling I came across srpm for same on postgres server.
https://download.postgresql.org/pub/repos/yum/srpms/common/fedora/fedora-32-x86_64/pgadmin4-python3-flask-compress-1.4.0-1.f32.src.rpm
I build RPM from Source as follows
rpmbuild --rebuild pgadmin4-python3-flask-compress-1.4.0-1.f32.src.rpm
it created rpm at /home/username/rpmbuild/RPMS/noarch with name
pgadmin4-python3-flask-compress-1.4.0-1.fc33.noarch.rpm.
After installing this as follows
sudo rpm -i pgadmin4-python3-flask-compress-1.4.0-1.fc33.noarch.rpm
I was able to install pgAdmin4.
Then further following tutorials above mention tutorials I got error at steps.
sudo python3 /usr/lib/python3.9/site-packages/pgadmin4-web/setup.py
Using pip I try to install missing email_validator & flask_security.
pip install flask_security
pip install email_validator
Now I try to fetch http://localhost/pgadmin4 again got error with log directory
sudo chown -R apache:apache /var/lib/pgadmin4/
sudo chown -R apache:apache /var/log/pgadmin4/
sudo chown -R apache:apache /var/lib/pgadmin4/sessions/
This time I got Http timout error when i tried to fetch pgadmin4 on browser ,changed timeout of apache by adding
TimeOut 600 in configuration file /etc/httpd/conf/httpd.conf.
At the end I am able to get pgadmin4 ,logged in successfully.
Search This Blog
2020/11/10
How I managed to install PgAdmin4 on Fedora 33.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment