Linux Install of Pismo File Mount Core Package

Home Forums PFM Audit Package End User Support Linux Install of Pismo File Mount Core Package

Tagged: , , ,

This topic contains 5 posts, has 3 voices, and was last updated by  Joe Lowe 1 year, 2 months.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts

  • Rui Silva
    Posts: 2

    Hello, i am trying to install Pismo File Mount Core Package build 183 in ubuntu minimal 16.04 64bit kernel 4.4.0-47-generic

    sudo ./pfm-183-testing-lin.run install

    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/pfm-license-testing.txt” to “/ usr/lib/pfm/pfm-license-testing.txt”.
    Adding install reference for file “/usr/lib/pfm/pfm-license-testing.txt”.
    NOTE: Installed PFM version “pfm.1.0.0.183” is same, repairing.
    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/x64/libptfactory1.so” to “/usr /lib/libptfactory1.so”.
    NOTE: Keeping existing file “/usr/lib/libptfactory1.so”, duplicate of “/tmp/ptru n_root/pfm-183-testing-lin/x64/libptfactory1.so”.
    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/x64/ptdllrun1” to “/usr/bin/pt dllrun1”.
    NOTE: Keeping existing file “/usr/bin/ptdllrun1”, duplicate of “/tmp/ptrun_root/ pfm-183-testing-lin/x64/ptdllrun1”.
    Removing kernel module “pfmfs”.
    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/x64/ptsysexec” to “/usr/lib/pf m/ptsysexec”.
    NOTE: Keeping existing file “/usr/lib/pfm/ptsysexec”, duplicate of “/tmp/ptrun_r oot/pfm-183-testing-lin/x64/ptsysexec”.
    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/x64/pfmapi_183.so” to “/usr/li b/pfm/pfmapi_183.so”.
    NOTE: Keeping existing file “/usr/lib/pfm/pfmapi_183.so”, duplicate of “/tmp/ptr un_root/pfm-183-testing-lin/x64/pfmapi_183.so”.
    Registering library “/usr/lib/pfm/pfmapi_183.so”.
    NOTE: Running command “ptdllrun1 -m factory_main /usr/lib/pfm/pfmapi_183.so regi ster”.
    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/x64/pfm” to “/usr/lib/pfm/pfm” .
    NOTE: Keeping existing file “/usr/lib/pfm/pfm”, duplicate of “/tmp/ptrun_root/pf m-183-testing-lin/x64/pfm”.
    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/x64/pfm” to “/usr/bin/pfm”.
    NOTE: Keeping existing file “/usr/bin/pfm”, duplicate of “/tmp/ptrun_root/pfm-18 3-testing-lin/x64/pfm”.
    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/x64/pfmhost” to “/usr/lib/pfm/ pfmhost”.
    NOTE: Keeping existing file “/usr/lib/pfm/pfmhost”, duplicate of “/tmp/ptrun_roo t/pfm-183-testing-lin/x64/pfmhost”.
    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/x64/pfmstart” to “/usr/lib/pfm /pfmstart”.
    NOTE: Keeping existing file “/usr/lib/pfm/pfmstart”, duplicate of “/tmp/ptrun_ro ot/pfm-183-testing-lin/x64/pfmstart”.
    Setting SUID-root for file “/usr/lib/pfm/pfmstart”.
    Installing kernel module “pfmfs_183”.
    Copying file “/tmp/ptrun_root/pfm-183-testing-lin/pfmfs_183.kmod” to “/lib/modul es/pfmfs_183.kmod”.
    NOTE: Keeping existing file “/lib/modules/pfmfs_183.kmod”, duplicate of “/tmp/pt run_root/pfm-183-testing-lin/pfmfs_183.kmod”.
    Creating kernel module control device udev rules in “/etc/udev/rules.d//50-pfmfs _183.rules”.
    NOTE: Running command “rm -r -f /lib/modules/4.4.0-47-generic/pfmfs_183”.
    NOTE: Running command “tar xzf /lib/modules/pfmfs_183.kmod -C /lib/modules/4.4.0 -47-generic”.
    NOTE: Running command “make -rR –no-print-directory -C /lib/modules/4.4.0-47-ge neric/pfmfs_183”.
    ERROR: Module load preparation failed “/lib/modules/pfmfs_183.kmod”.
    Removing install reference for file “pfm-license-testing.txt”.
    Deleting file “/usr/lib/pfm/pfm-license-testing.txt”.
    ERROR: Core install failed.

    can you help me install it?

    Best regards,
    Rui Silva


    Joe Lowe
    Posts: 101

    The PFM Linux package compiles and links the needed PFM kernel module at install time, and if your kernel has been updated it may also compile it at run time. This requires that your system have Linux kernel headers and build tools installed.

    Many distros have a package available called DKMS that automates building of kernel modules. PFM does not use DKMS, but by installing DKMS on your system then you will also have the linux headers and tools that PFM needs. So from a terminal on a Debian based system:

    sudo apt-get install dkms

    If you don’t have or want DKMS installed, you can install the linux headers and tools directly. You will need to re-install the Linux headers package each time you update the kernel on your system. So from a terminal on a Debian based system:

    sudo apt-get install linux-headers-$(uname -r)
    sudo apt-get install build-essential

    Kernel versions:

    PFM requires code changes for _every_ kernel release (4.4, 4.5, 4.6, …), but not for security updates (4.4.2, 4.4.3, etc). This is unfortunate but unavoidable given the development philosophy of the Linux kernel developers. There are times when the latest publicly available PFM build will not install if the running kernel version is quite new.

    If there is a kernel version compatibility issue, the install log will indicate it. If the install log does not indicate a version issue then the install failure is likely due to missing Linux headers or tools.


    Rui Silva
    Posts: 2

    Thank you Joe Lowe, problem solved.

    Best regards


    Samuel Pereira
    Posts: 1

    Hi Joe,

    I’m using Debian 9.5.
    uname -a
    Linux pico5 4.9.0-7-686-pae #1 SMP Debian 4.9.110-3+deb9u2 (2018-08-13) i686 GNU/Linux

    I have installed the suggested packages and I still get the following errors. Do you have any suggestion? Thank you!

    root@pico5:/tmp# sudo apt-get install dkms
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    dkms is already the newest version (2.3-2).
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    root@pico5:/tmp# sudo apt-get install linux-headers-$(uname -r)
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    linux-headers-4.9.0-7-686-pae is already the newest version (4.9.110-3+deb9u2).
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    root@pico5:/tmp# sudo apt-get install build-essential
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    build-essential is already the newest version (12.3).
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    root@pico5:/tmp#
    root@pico5:/tmp#
    root@pico5:/tmp# ./pfmap-191-lin.run install
    X11 connection rejected because of wrong authentication.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/pfmap-uninstall” to “/usr/lib/PismoFileMountAuditPackage/pfmap-uninstall”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/pfmap-uninstall.png” to “/usr/lib/PismoFileMountAuditPackage/pfmap-uninstall.png”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/ptgui_109.so” to “/usr/lib/PismoFileMountAuditPackage/ptgui_109.so”.
    Registering uninstaller “/usr/lib/PismoFileMountAuditPackage/pfmap-uninstall” as “Pismo File Mount Audit Package”.
    NOTE: Running command “/tmp/ptrun_root/pfmap-191-lin/x86/pfminst install hIUBQenpP/nfZ8mVJl9z0jvBYn8O/0Dnwzyhvp0heLI=”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/pfm-license-auditpackage.txt” to “/usr/lib/pfm/pfm-license-auditpackage.txt”.
    Adding install reference for file “/usr/lib/pfm/pfm-license-auditpackage.txt”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/libptfactory1.so” to “/usr/lib/libptfactory1.so”.
    NOTE: Keeping existing file “/usr/lib/libptfactory1.so”, duplicate of “/tmp/ptrun_root/pfmap-191-lin/x86/libptfactory1.so”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/ptdllrun1” to “/usr/bin/ptdllrun1”.
    NOTE: Keeping existing file “/usr/bin/ptdllrun1”, duplicate of “/tmp/ptrun_root/pfmap-191-lin/x86/ptdllrun1”.
    Removing kernel module “pfmfs”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/ptsysexec” to “/usr/lib/pfm/ptsysexec”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/pfmapi_191.so” to “/usr/lib/pfm/pfmapi_191.so”.
    Registering library “/usr/lib/pfm/pfmapi_191.so”.
    NOTE: Running command “ptdllrun1 -m factory_main /usr/lib/pfm/pfmapi_191.so register”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/pfm” to “/usr/lib/pfm/pfm”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/pfm” to “/usr/bin/pfm”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/pfmhost” to “/usr/lib/pfm/pfmhost”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/x86/pfmstart” to “/usr/lib/pfm/pfmstart”.
    Setting SUID-root for file “/usr/lib/pfm/pfmstart”.
    Installing kernel module “pfmfs_191”.
    Copying file “/tmp/ptrun_root/pfmap-191-lin/pfmfs_191.kmod” to “/lib/modules/pfmfs_191.kmod”.
    Creating kernel module control device udev rules in “/etc/udev/rules.d/50-pfmfs_191.rules”.
    NOTE: Running command “rm -r -f /lib/modules/4.9.0-7-686-pae/pfmfs_191”.
    NOTE: Running command “tar xzf /lib/modules/pfmfs_191.kmod -C /lib/modules/4.9.0-7-686-pae”.
    NOTE: Running command “make -rR –no-print-directory -C /lib/modules/4.9.0-7-686-pae/pfmfs_191”.
    compiling for LINUX_VER=41010 RHEL_VER=0
    LD /lib/modules/4.9.0-7-686-pae/pfmfs_191/built-in.o
    CC [M] /lib/modules/4.9.0-7-686-pae/pfmfs_191/fsklin.o
    In file included from /lib/modules/4.9.0-7-686-pae/pfmfs_191/fsklinincludes.h:2:0,
    from /lib/modules/4.9.0-7-686-pae/pfmfs_191/fsklin.c:17:
    /lib/modules/4.9.0-7-686-pae/pfmfs_191/linuxkernel.h: In function ‘kpi_mutex_is_locked’:
    /lib/modules/4.9.0-7-686-pae/pfmfs_191/linuxkernel.h:256:33: error: implicit declaration of function ‘__mutex_owner’ [-Werror=implicit-function-declaration]
    return mutex_is_locked(m) && __mutex_owner(m) == current;
    ^~~~~~~~~~~~~
    /lib/modules/4.9.0-7-686-pae/pfmfs_191/linuxkernel.h:256:50: warning: comparison between pointer and integer
    return mutex_is_locked(m) && __mutex_owner(m) == current;
    ^~
    cc1: some warnings being treated as errors
    /usr/src/linux-headers-4.9.0-7-common/scripts/Makefile.build:301: recipe for target ‘/lib/modules/4.9.0-7-686-pae/pfmfs_191/fsklin.o’ failed
    make[4]: *** [/lib/modules/4.9.0-7-686-pae/pfmfs_191/fsklin.o] Error 1
    /usr/src/linux-headers-4.9.0-7-common/Makefile:1526: recipe for target ‘_module_/lib/modules/4.9.0-7-686-pae/pfmfs_191’ failed
    make[3]: *** [_module_/lib/modules/4.9.0-7-686-pae/pfmfs_191] Error 2
    Makefile:152: recipe for target ‘sub-make’ failed
    make[2]: *** [sub-make] Error 2
    Makefile:8: recipe for target ‘all’ failed
    make[1]: *** [all] Error 2
    Makefile:90: recipe for target ‘default’ failed
    make: *** [default] Error 2
    ERROR: Module load preparation failed “/lib/modules/pfmfs_191.kmod”.
    Removing install reference for file “pfm-license-auditpackage.txt”.
    Deleting file “/usr/lib/pfm/pfm-license-auditpackage.txt”.
    ERROR: Core install failed.
    Deleting file “/usr/lib/PismoFileMountAuditPackage/ptgui_109.so”.
    NOTE: Running command “/tmp/ptrun_root/pfmap-191-lin/x86/pfminst uninstall pfm-license-auditpackage.txt”.
    Removing install reference for file “/tmp/ptrun_root/pfmap-191-lin/x86/pfm-license-auditpackage.txt”.
    NOTE: Running command “/usr/lib/pfm/pfm sysstop”.
    Stopped.
    Removing kernel module “pfmfs”.
    Unregistering library “/usr/lib/pfm/pfmapi_191.so”.
    NOTE: Running command “ptdllrun1 -m factory_main /usr/lib/pfm/pfmapi_191.so unregister”.
    Deleting file “/usr/lib/pfm/pfmapi_191.so”.
    Removing kernel module “pfmfs_191”.
    Deleting file “/lib/modules/pfmfs_191.kmod”.
    Deleting file “/etc/udev/rules.d/50-pfmfs_191.rules”.
    NOTE: Running command “rm -r -f /lib/modules/4.9.0-7-686-pae/pfmfs_191”.
    Deleting file “/usr/lib/pfm/pfmstart”.
    Deleting file “/usr/lib/pfm/pfm”.
    Deleting file “/usr/bin/pfm”.
    Deleting file “/usr/lib/pfm/pfmhost”.
    Deleting file “/usr/lib/pfm/ptsysexec”.
    Uninstall complete.
    Unregistering uninstaller “Pismo File Mount Audit Package”.
    Deleting file “/usr/lib/PismoFileMountAuditPackage/pfmap-uninstall”.
    Deleting file “/usr/lib/PismoFileMountAuditPackage/pfmap-uninstall.png”.


    Joe Lowe
    Posts: 101

    This failure is due to an error in my kernel module build script. 3 digit (100+) kernel sub-minor version numbers are the trigger.

    …ian 4.9.110-3+de…
    compiling for LINUX_VER=41010 RHEL_VER=0

    I have a fix ready. It will be in the next release.

    The temporary work-around is to downgrade to a 4.9.99 or earlier kernel, or upgrade to a 4.10-4.16 kernel.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.