doomedraven / Tools

Combination of different utilities, have fun!
MIT License
202 stars 96 forks source link

libvirt-Installation Error #56

Closed ClaudioWayne closed 4 years ago

ClaudioWayne commented 4 years ago

This is opensource and you getting free support so be friendly!

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

Installation without Error

Current Behavior

KVM-Installation failed due to install_libvirt function

Failure Information (for bugs)

Hi, I tried to install kvm but getting this Error:

Error2

It seems that there are some problems with libvirt_so_path and/or PKG_CONFIG_PATH. So i decided to determine the the Path to libvirt-qemu.so and libvirt.pc automatically:

updatedb

temp_libvirt_so_path=$(locate libvirt-qemu.so | head -n1 | awk '{print $1;}')  
temp_export_path=$(locate libvirt.pc | head -n1 | awk '{print $1;}')  
libvirt_so_path="${temp_libvirt_so_path%/*}/"
export_path="${temp_export_path%/*}/"

export PKG_CONFIG_PATH=$export_path

Maybe not the best solution, but worked for me. Perhaps someone is struggling with the same problem.

Have a nice day

Claudio

Steps to Reproduce

sudo ./kvm-qemu.sh kvm

Context

Question Answer
OS version Ubuntu 20.04.1 LTS
doomedraven commented 4 years ago

oh thank you, you saved my time and implemented what i had in ToDo, i will add it right now

doomedraven commented 4 years ago

pushed fix, thanks a lot again have a great day