Re: Building pgadmin4 on Slackware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx> wrote:


/usr/lib/python2.7/site-packages/pgadmin4

you can find / -name pgadmin4


------------------ 原始邮件 ------------------
发件人: "Ron"<ronljohnsonjr@xxxxxxxxx>;
发送时间: 2019年1月28日(星期一) 凌晨1:47
收件人: "pgsql-admin"<pgsql-admin@xxxxxxxxxxxxxxxxxxxx>;
主题: 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.


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux