pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Building pgadmin4 on Slackware
3+ messages / 2 participants
[nested] [flat]

* Building pgadmin4 on Slackware
@ 2019-01-27 16:46  Ibrahim Shaame <ishaame@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Ibrahim Shaame @ 2019-01-27 16:46 UTC (permalink / raw)
  To: pgsql-admin

I have created a python environment and have installed pgdmin4 using pip3.
I get the message that pgadmin4 for was successfully installed, but I
cannot run it as I don't know where it is installed. In project directory I
created ./pgadmin4 there are only two files: Pipfile  Pipfile.lock, while
in the $ user directory there are .local/bin lib64 and share
sub-directories. Descending in them they seem to me to be files for the
environment.
Excuse me for my ignorance, I don't know much about python. I had to use it
only because there is no readily available distribution of pgadmin4 for
Slackware.
Please help.

Slackware64-Current
Python3.6
Postgresql 11.1

Thanks
Ibrahim Shaame

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Building pgadmin4 on Slackware
@ 2019-01-27 17:47  Ron <ronljohnsonjr@gmail.com>
  parent: Ibrahim Shaame <ishaame@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Ron @ 2019-01-27 17:47 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

On 1/27/19 10:46 AM, Ibrahim Shaame wrote:
> I have created a python environment and have installed pgdmin4 using pip3.
> I get the message that pgadmin4 for was successfully installed, but I 
> cannot run it as I don't know where it is installed. In project directory 
> I created ./pgadmin4 there are only two files: Pipfile  Pipfile.lock, 
> while in the $ user directory there are .local/bin lib64 and share 
> sub-directories. Descending in them they seem to me to be files for the 
> environment.
> Excuse me for my ignorance, I don't know much about python. I had to use 
> it only because there is no readily available distribution of pgadmin4 for 
> Slackware.
> Please help.

You could always "find" it...

sudo find / -name pgadmin4

Note that since Slackware is for experts, it might behoove you to run Ubuntu 
or RHEL.




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Building pgadmin4 on Slackware
@ 2019-01-28 21:11  Ibrahim Shaame <ishaame@gmail.com>
  parent: Ron <ronljohnsonjr@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Ibrahim Shaame @ 2019-01-28 21:11 UTC (permalink / raw)
  To: 王荣鑫 <mithra@qq.com>; +Cc: Ron <ronljohnsonjr@gmail.com>; pgsql-admin <pgsql-admin@lists.postgresql.org>

Thank you for the response. I have found pgadmin4 was in building
environment directory:
../.local/share/virtualenvs/pgadmin4-mudXvrJT/lib/python3.6/site-packages/pgadmin4.
I have tried to run setup.py. After installing in between the numerous
dependencies, it ended telling: pgAdmin 4 - Application Initialisation. I
wonder what should I do, as the setup on pgadmin doc does not give much
information on compiling it. It says: "

   1.

   Create a config_local.py file alongside the existing config.py file.
   2.

   Edit config_local.py and add the following settings. In most cases, the
   default file locations should be appropriate:

   *NOTE: You must ensure the directories specified are writeable by the
   user that the web server processes will be running as, e.g. apache or
   www-data.*

   LOG_FILE = '/var/log/pgadmin4/pgadmin4.log'SQLITE_PATH =
'/var/lib/pgadmin4/pgadmin4.db'SESSION_DB_PATH =
'/var/lib/pgadmin4/sessions'STORAGE_DIR = '/var/lib/pgadmin4/storage'



   1.

   Run the following command to create the configuration database:

   # python setup.py


But after running that setup I don't see any of the above mentioned (in 2.)
files

Ron, I quite at ease with Slackware which is my preferred distribution.
What I need is just clear instructions on how to build pgadmin from sources.

Thanks
Ibrahim Shaame


On Mon, Jan 28, 2019 at 1:44 AM 王荣鑫 <mithra@qq.com> wrote:

>
>
> /usr/lib/python2.7/site-packages/pgadmin4
>
> you can find / -name pgadmin4
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Ron"<ronljohnsonjr@gmail.com>;
> *发送时间:* 2019年1月28日(星期一) 凌晨1:47
> *收件人:* "pgsql-admin"<pgsql-admin@lists.postgresql.org>;
> *主题:* Re: Building pgadmin4 on Slackware
>
> On 1/27/19 10:46 AM, Ibrahim Shaame wrote:
> > I have created a python environment and have installed pgdmin4 using
> pip3.
> > I get the message that pgadmin4 for was successfully installed, but I
> > cannot run it as I don't know where it is installed. In project
> directory
> > I created ./pgadmin4 there are only two files: Pipfile  Pipfile.lock,
> > while in the $ user directory there are .local/bin lib64 and share
> > sub-directories. Descending in them they seem to me to be files for the
> > environment.
> > Excuse me for my ignorance, I don't know much about python. I had to use
> > it only because there is no readily available distribution of pgadmin4
> for
> > Slackware.
> > Please help.
>
> You could always "find" it...
>
> sudo find / -name pgadmin4
>
> Note that since Slackware is for experts, it might behoove you to run
> Ubuntu
> or RHEL.
>
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-01-28 21:11 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-27 16:46 Building pgadmin4 on Slackware Ibrahim Shaame <ishaame@gmail.com>
2019-01-27 17:47 ` Ron <ronljohnsonjr@gmail.com>
2019-01-28 21:11   ` Ibrahim Shaame <ishaame@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox