AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  mkinstallp does not seem to like symbolic links

    Posted Wed July 30, 2008 08:16 PM

    Originally posted by: SystemAdmin


    Hi I am new to AIX and am building a package using mkinstallp

    when I run the command I get the message

    0503-881 mkinstallp: Invalid Filename (/usr/ctmad/ctm/exe/ctmshout)
    in /tmp/packages/ctmad.template

    when I look at this file the only thing I see is it's the 1st symbolic link in the file list.

    can mkinstallp not handle symbolic links?

    will I have to remove the symbolic links and write a post install script to re-create them after the install?

    thanks
    #AIX-Forum


  • 2.  Re: mkinstallp does not seem to like symbolic links

    Posted Tue June 08, 2010 06:47 AM

    Originally posted by: SystemAdmin


    mkinstallp does support symbolic links, however the link target must be listed in the template file list before the symbolic link that points to it.

    I get around this problem by issuing a series of "find" commands to build up the file and directory list:

    eg something like:
    
    ( find <pkg_base> -type d | sort ; find <pkg_base> -type f | sort ; find <pkg_base> -type l | sort ) > raw.filelist
    


    This ensures that you get all your directories, then real files, then symbolic links.

    If you do that, mkinstallp will work fine.
    #AIX-Forum


  • 3.  Re: mkinstallp does not seem to like symbolic links

    Posted Wed July 07, 2010 02:37 PM

    Originally posted by: omonte


    n504936, did this resolve your problem? I'm getting the same error on a directory (/usr/local).
    #AIX-Forum


  • 4.  Re: mkinstallp does not seem to like symbolic links

    Posted Fri September 09, 2011 12:01 PM

    Originally posted by: SystemAdmin


    But what about links that points to a file that doesn't exist ?
    mkinstallp ends with the same error
    Is there any solution to bypass that without creating an empty file, or the symlinks with a post_install shell ?
    #AIX-Forum