Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Running Kactus2 on CentOS 7 #96

Closed
abdullahyildiz opened this issue Jan 8, 2024 · 1 comment
Closed

Running Kactus2 on CentOS 7 #96

abdullahyildiz opened this issue Jan 8, 2024 · 1 comment

Comments

@abdullahyildiz
Copy link

abdullahyildiz commented Jan 8, 2024

Since the latest version of Kactus2 requires Qt6 and the newer versions of Qt are not maintained in CentOS 7 package repositories, I can also suggest running Kactus2 in a Docker container on CentOS 7.

For this, just create a Ubuntu Docker image on your CentOS 7 host machine and build Kactus2 in the Docker image itself. For those who are not very experienced with Docker: do not forget to save your changes via docker commit otherwise you may have to repeat the same installation steps.

# before starting Kactus2 in your Docker container, run the following command to enable applications running in the Docker container to use GUI of CentOS 7:
<centos> xhost +
# start the Docker container - assuming the image name is ubuntu:kactus2
<centos> docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix ubuntu:kactus2

Now the Docker container should be up and running:

# type kactus2 in your terminal:
<ubuntu> kactus2

Please note that the following workaround (which is explained here) should be applied if the Docker host is CentOS 7 and if you receive the error "libQt6Core.so.6: cannot open shared object file" received when starting Kactus2:

# run the following command in your Docker container to resolve the issue:
<ubuntu> strip --remove-section=.note.ABI-tag libQt6Core.so.6
# type kactus2 in your terminal:
<ubuntu> kactus2

Note: The solution has been tested to run Kactus2 Release for version 3.13.0.

@hagantsa
Copy link
Collaborator

hagantsa commented Mar 4, 2024

Hi,

Thank you for sharing! I'll link this in our wiki page for others to find.

@hagantsa hagantsa closed this as completed Mar 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants