2017-07-29 18:00 GMT+08:00 Richard W.M. Jones <rjones(a)redhat.com>:
> I download the newset package and extract in my
> path(/share/CACHEDEV1_DATA/appliance/) and set env
> It doesn't work.
> and I run the libugestfs-test-tool:
Please don't provide partial information. Include the command you
type and *all* the output, without editing or removing any part of it.
export LIBGUESTFS_PATH=/share/CACHEDEV1_DATA/appliance
[/share/CACHEDEV1_DATA/guestfk/usr/local/bin] # ./libguestfs-test-tool
./libguestfs-test-tool: /usr/lib/libsasl2.so.2: no version information
available (required by /usr/local/lib/libvirt.so.0)
./libguestfs-test-tool: /usr/lib/libdbus-1.so.3: no version information
available (required by /usr/local/lib/libvirt.so.0)
./libguestfs-test-tool: /usr/lib/libldap_r-2.4.so.2: no version information
available (required by /usr/local/lib/libcurl-gnutls.so.4)
./libguestfs-test-tool: /lib/liblber-2.4.so.2: no version information
available (required by /usr/local/lib/libcurl-gnutls.so.4)
./libguestfs-test-tool: /usr/lib/libgpg-error.so.0: no version information
available (required by /usr/local/lib/libgcrypt.so.20)
************************************************************
* IMPORTANT NOTICE
*
* When reporting bugs, include the COMPLETE, UNEDITED
* output below in your bug report.
*
************************************************************
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_path "/share/CACHEDEV1_DATA/appliance"
libguestfs: trace: set_path = 0
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
LIBGUESTFS_PATH=/share/CACHEDEV1_DATA/appliance
LIBGUESTFS_DEBUG=1
LIBGUESTFS_TRACE=1
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
SELinux: sh: getenforce: command not found
libguestfs: trace: add_drive_scratch 104857600
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: disk_create "/tmp/libguestfsbaZQUg/scratch.1"
"raw"
104857600
libguestfs: trace: disk_create = 0
libguestfs: trace: add_drive "/tmp/libguestfsbaZQUg/scratch.1"
"format:raw"
"cachemode:unsafe"
libguestfs: trace: add_drive = 0
libguestfs: trace: add_drive_scratch = 0
libguestfs: trace: get_append
libguestfs: trace: get_append = "NULL"
guestfs_get_append: (null)
libguestfs: trace: get_autosync
libguestfs: trace: get_autosync = 1
guestfs_get_autosync: 1
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "direct"
guestfs_get_backend: direct
libguestfs: trace: get_backend_settings
libguestfs: trace: get_backend_settings = []
guestfs_get_backend_settings: []
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
guestfs_get_cachedir: /var/tmp
libguestfs: trace: get_hv
libguestfs: trace: get_hv = "/usr/bin/qemu-system-x86_64"
guestfs_get_hv: /usr/bin/qemu-system-x86_64
libguestfs: trace: get_memsize
libguestfs: trace: get_memsize = 500
guestfs_get_memsize: 500
libguestfs: trace: get_network
libguestfs: trace: get_network = 0
guestfs_get_network: 0
libguestfs: trace: get_path
libguestfs: trace: get_path = "/share/CACHEDEV1_DATA/appliance"
guestfs_get_path: /share/CACHEDEV1_DATA/appliance
libguestfs: trace: get_pgroup
libguestfs: trace: get_pgroup = 0
guestfs_get_pgroup: 0
libguestfs: trace: get_program
libguestfs: trace: get_program = "libguestfs-test-tool"
guestfs_get_program: libguestfs-test-tool
libguestfs: trace: get_recovery_proc
libguestfs: trace: get_recovery_proc = 1
guestfs_get_recovery_proc: 1
libguestfs: trace: get_smp
libguestfs: trace: get_smp = 1
guestfs_get_smp: 1
./libguestfs-test-tool: symbol lookup error: ./libguestfs-test-tool:
undefined symbol: guestfs_get_sockdir
./libguestfs-test-tool: symbol lookup error: ./libguestfs-test-tool:
> undefined symbol: guestfs_get_sockdir
In this case you want to use:
./run libguestfs-test-tool
when I run "./run libguestfs-test-tool", it says "./run: line 57:
cd:
/home/use/git/libguestfs: No such file or directory"
because I don't want the prefix "git" so I run "make install
DESTDIR=/share/CACHEDEV1_DATA/" when I build.
how to remove the prefix "git" dependency?