Problem on creating Virtual Users

Discussion in 'Server Operation' started by satimis, Mar 21, 2007.

  1. satimis

    satimis Member

    Hi folks,

    CentOS 4.4 x86_64

    I followed;
    Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS
    http://www.howtoforge.com/virtual_users_postfix_courier_mailscanner_clamav_centos

    and was stuck on;
    [vmail@localhost root]$ sudo yum install libtool postgresql-devel gdbm-devel pam-devel expect openldap-devel
    Code:
    
    We trust you have received the usual lecture from the local System
    Administrator. It usually boils down to these two things:
    
            #1) Respect the privacy of others.
            #2) Think before you type.
    
    Password:
    
    I don't know the password. What shall I enter here.

    I looked around "man visudo" and can't figure out how to add;
    Code:
    User_Alias ADMIN = satimis
    
    ADMIN ALL=(ALL) NOPASSWD : ALL 
    Pls advise. TIA


    B.R.
    satimis
     
  2. satimis

    satimis Member

    Hi folks,

    I solved the password problem by re-editing /etc/sudoers as follows
    Code:
    vmail ALL=(ALL) NOPASSWD: ALL
    
    Still encountered following problem;

    [vmail@localhost satimi]$ sudo yum install libtool postgresql-devel gdbm-devel pam-devel expect openldap-devel
    Code:
    Setting up Install Process
    Setting up repositories
    kbs-CentOS-Extras         100% |=========================|  951 B    00:00     
    update                    100% |=========================|  951 B    00:00     
    base                      100% |=========================| 1.1 kB    00:00     
    addons                    100% |=========================|  951 B    00:00     
    extras                    100% |=========================| 1.1 kB    00:00     
    Reading repository metadata in from local files
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package expect.x86_64 0:5.42.1-1 set to be updated
    ---> Package postgresql-devel.x86_64 0:7.4.16-1.RHEL4.1 set to be updated
    ---> Package pam-devel.i386 0:0.77-66.17 set to be updated
    --> Running transaction check
    --> Processing Dependency: postgresql = 7.4.16-1.RHEL4.1 for package: postgresql-devel
    --> Finished Dependency Resolution
    Error: Missing Dependency: postgresql = 7.4.16-1.RHEL4.1 is needed by package postgresql-devel
    
    # yum search postgresql | grep 7.4.16-1.RHEL4.1
    Code:
    postgresql-contrib.x86_64                7.4.16-1.RHEL4.1       update          
    postgresql.x86_64                        7.4.16-1.RHEL4.1       update          
    postgresql-python.x86_64                 7.4.16-1.RHEL4.1       update          
    postgresql-devel.x86_64                  7.4.16-1.RHEL4.1       update          
    postgresql-docs.x86_64                   7.4.16-1.RHEL4.1       update          
    postgresql-jdbc.x86_64                   7.4.16-1.RHEL4.1       update          
    postgresql-libs.x86_64                   7.4.16-1.RHEL4.1       update          
    postgresql-pl.x86_64                     7.4.16-1.RHEL4.1       update          
    postgresql-libs.i386                     7.4.16-1.RHEL4.1       update          
    postgresql-server.x86_64                 7.4.16-1.RHEL4.1       update          
    postgresql-tcl.x86_64                    7.4.16-1.RHEL4.1       update          
    postgresql-test.x86_64                   7.4.16-1.RHEL4.1       update          
    postgresql-libs.i386                     7.4.16-1.RHEL4.1       installed   
    
    # yum search postgresql.x86_64
    Code:
    Searching Packages: 
    Setting up repositories
    Reading repository metadata in from local files
    No Matches found
    
    I have been googling around but can't find which repo provides "postgresql = 7.4.16-1.RHEL4.1"

    Any suggestion? TIA


    B.R.
    satimis
     
  3. falko

    falko Super Moderator Howtoforge Staff

    What happens when you run
    Code:
    yum install postgresql postgresql-devel
    ?
     
  4. satimis

    satimis Member

    Hi falko,

    [vmail@localhost satimis]$ sudo yum install postgresql postresql-devel
    Code:
    Setting up Install Process
    Setting up repositories
    kbs-CentOS-Extras         100% |=========================|  951 B    00:00     
    update                    100% |=========================|  951 B    00:00     
    base                      100% |=========================| 1.1 kB    00:00     
    addons                    100% |=========================|  951 B    00:00     
    extras                    100% |=========================| 1.1 kB    00:00     
    Reading repository metadata in from local files
    Parsing package install arguments
    No Match for argument: postresql-devel
    Nothing to do
    
    Can't find postresql-devel

    # ls /etc/yum.repos.d/
    Code:
    CentOS-Base.repo   kbsingh-CentOS-Extras.repo  rpmforge.repo
    CentOS-Media.repo  mirrors-rpmforge
    
    Last time I tried installing dag.repo. The website pointed to rpmforge.repo

    # cat /etc/yum.repos.d/rpmforge.repo
    Code:
    # Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag
    # URL: http://rpmforge.net/
    [rpmforge]
    name = Red Hat Enterprise $releasever - RPMforge.net - dag
    baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
    #mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
    #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
    enabled = 0
    protect = 0
    gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
    gpgcheck = 1
    
    [dag]
    name=Dag RPM Repository for Red Hat Enterprise Linux
    baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
    gpgcheck=1
    enabled=0
    
    Tried follow also w/o result
    # yum install --enablerepo=rpmforge postgresql postgresql-devel
    Code:
    Setting up Install Process
    Setting up repositories
    rpmforge                  100% |=========================| 1.1 kB    00:00     
    Reading repository metadata in from local files
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package postgresql-devel.x86_64 0:7.4.16-1.RHEL4.1 set to be updated
    --> Running transaction check
    --> Processing Dependency: postgresql = 7.4.16-1.RHEL4.1 for package: postgresql-devel
    --> Finished Dependency Resolution
    Error: Missing Dependency: postgresql = 7.4.16-1.RHEL4.1 is needed by package postgresql-devel
    
    Folks on postgresql advised me either complain to CentOS or download the packages on their website to proceed.

    Now I have following packages download on their/mirror sites:-
    Code:
    1)
    ftp://ftp.is.postgresql.org/pub/postgresql/binary/v7.4.16/linux/rpms/fedora/fedora-core-6-x86_64
    Download following postgresql packages (FC6);
    postgresql-7.4.16-1PGDG.x86_64.rpm
    postgresql-devel-7.4.16-1PGDG.x86_64.rpm
    postgresql-server-7.4.16-1PGDG.x86_64.rpm
    
    published on 02.08.2007
    
    2)
    ftp://ftp.postgresql.org/postgresql/binary/v7.4.16/linux/rpms/redhat/rhel-es-4-x86_64
    Download following postgresql packages (RH)
    postgresql-7.4.16-1PGDG.x86_64.rpm
    postgresql-devel-7.4.16-1PGDG.x86_64.rpm
    postgresql-server-7.4.16-1PGDG.x86_64.rpm
    
    published on 02.06.2007
    
    I hesitate which of them will be the right packages for me. (I suppose "rhel-es-4-x86_64" packages will be more appropriate)

    Secondly I don't know whether I have to run;
    1)
    # yum groupremove postgresql

    OR

    2)
    # yum remove postgresql

    I have been turning around here for 2 days. I got no advice on CentOS 4 forum.


    B.R.
    satimis
     
  5. falko

    falko Super Moderator Howtoforge Staff

    It seems your package database is really messed up. Maybe you should try a clean reinstall...
     
  6. satimis

    satimis Member

    OK. I started already, erasing the complete HD and following following howto to install CentSO 4.4 x86_64;

    http://www.howtoforge.com/perfect_setup_centos_4.4

    I encountered some problems during installing CentOS 4.4. I'll post all problems here under a new topic after finish.

    Tks.


    B.R.
    satimis
     
  7. aogo

    aogo New Member

    Hate to bump and old thread, but you've installed the RPMForge (or Dag) repository for CentOS 5/RHEL 5, rather than CentOS 4/RHEL 4.

    A clean install would be best, but you could edit out your repository list and enter in the correct version instead if you didn't want to reinstall.
     
  8. satimis

    satimis Member

    Hi aogo,

    This OS has been erased. A clean new installation has been made. This thread has been replaced with another thread;

    http://www.howtoforge.com/forums/showthread.php?t=11964

    But still I can't complete the installation as described in the howto.

    satimis
     

Share This Page