Wednesday, October 12, 2011

((01)) [C_Initialize] failed at c_init_fini.c:152, rc = 2 (0x2), reason: [Failed to open /dev/pkcs11, reason : No such file or director



Problem Statement 


While doing ssh on AIX the following messages are seen during connection .

# ssh localhost


***********************************
Error stack trace (1 frames):
((01)) [C_Initialize] failed at c_init_fini.c:152, rc = 2 (0x2), reason: [Failed to open /dev/pkcs11, reason : No such file or directory
]

***********************************



    ***********************************
    Error stack trace (1 frames):
    ((01)) [C_Initialize] failed at c_init_fini.c:152, rc = 2 (0x2), reason: [Failed to open /dev/pkcs11, reason : No such file or directory
    ]

    ***********************************
    root@localhost's password:




      Solution


      root@rac14 / > lslpp -l | grep pkcs
      security.pkcs11 7.1.0.1 COMMITTED PKCS11 Device Driver
      security.pkcs11 7.1.0.0 COMMITTED PKCS11 Device Driver

      Remove the security.pkcs11 package as follows:
      installp -u security.pkcs11 








      Thursday, March 17, 2011

      mount.nfs: Remote I/O error

      Question :

      How to resolve the following mount error on Linux platforms ?

       [root@instrhel6ppc ~]# mount -o nolock thor:/devinst /devinst
      mount.nfs: Remote I/O error
      [root@instrhel6ppc ~]#


      Answer :

      Add the options to mount as shown below and it will resolve the issue .


      [root@instrhel6ppc ~]# mount -o vers=3 thor:/devinst /devinst
      [root@instrhel6ppc ~]#


      Thursday, February 24, 2011

      Too early to specify a build action 'Build'. Do 'Build Build' instead

      Question : While installing a perl module on AIX server saw the following error. After the download I ran the following commands to install the module.

      # perl Makefile.PL
      Checking if your kit is complete...
      Looks good
      Writing Makefile for Tie::IxHash
      # make install
              /usr/bin/perl "-Iblib/arch" "-Iblib/lib" Build.PL Build
      Too early to specify a build action 'Build'.  Do 'Build Build' instead.
      make: 1254-004 The error code from the last command is 2.


      Stop.
      #

       Resolution :

      Edit the generated Makefile as shown below :
      1. Search for the following line in Makefile .

      $(PERLRUNINST) Build.PL Build

      2. Change it to as shown below :

      $(PERLRUNINST) Build.PL &&Build

      3. After this try "make install" again and it should complete successfully.

      Search This Blog