Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Good afternoon everyone,
I am setting up Postgresql on my redhat 8 system. I have installed the files and have set up the proper directories, however I have run into a problem. I am trying to initialize the database with initdb. The command is
I did not have a bin in that first half of the statement so in locating initdb, I found it in the dire /usr/bin. I then used the following line:
pg$ /usr/bin/initdb -D /usr/local/pgsql/data
After running the line above, I got a message saying success! I then started the postmaster and again everything went fine. However I need to create users for this database so I use the following command:
pg$ /usr/local/pgsql/bin/createuser bruce
I get an error stating there is no such directory. The question is, how do I get the postgres bin created? Also I am guessing that the bin should have commands that are specific to postgresql. Is there a way for me to import this bin from /usr/bin ? Any help is greatly appreciated. Thanks!
I'm not sure exactly what the problem may be... however the createuser is just a shell script. You could take a look at its internals to find out what it may be doing that would cause a 'no such directory' error.
If you can provide more information, particularly *exactly* what the returned error is I may be able to help a bit more. Also do you get this error before or after answering the two permission questions of whether the user can add / del tables and add / del users?
Thanks for the reply jb! I was fooling around with the createuser script. Bottom line, there is supposed to be a bin in the following path /usr/local/pgsql/bin In this bin is where are the postgres scripts should be. However during my installation I did not end up with a "bin" in the pgsql directory. Knowing where the postgres scripts reside (/usr/bin/) I can execute everything I need. The trick of course will be to set up the postmaster to start up on log in. That maybe my next post to the group. If anyone is curious as to this problem in detail, I would be happy to explain it in full. Take care!