Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How do I compile custom xcat dep? #7443

Open
WZT666-dev opened this issue May 28, 2024 · 5 comments
Open

How do I compile custom xcat dep? #7443

WZT666-dev opened this issue May 28, 2024 · 5 comments
Assignees

Comments

@WZT666-dev
Copy link

I downloaded the project source code and executed it/ Builddep.sh, but an error occurred:

Error: This script is intended to be used by xCAT development
Error: The GSA directory (/gsa/pokgsa/projects/x/xcat/build/Linux/xcat dep) does not appear to be mounted, cannot continue!

I modified builddep.sh to specify the directory of xcat dep under/root, but a new error occurred:

===>Making sure that the mklocalrepo.sh file contains execute permission
Ls: cannot access/root/xcat core// Xcat dep build/xcat dep/mklocalrepo. sh: No such file or directory
===>-- find not execute, changing+x
Chmod: cannot access'/root/xcat core// Xcat dep build/xcat dep/mklocalrepo. sh ': No such file or directory
===>Checking if 'replacelinks' is in the xcat deps, removing if there
===>Building the tarball at:/root/xcat core// Xcat dep build
===>Creating xcat dep-202405282128. tar. bz2

How do I compile and generate rpm packages related to xcat dep?

@Obihoernchen Obihoernchen self-assigned this May 28, 2024
@samveen
Copy link
Member

samveen commented May 29, 2024

builddep.sh builds dependencies, not the xCAT packages themselves. Would you update the first post to contain more information about where you are building the packages, and why you need to build them?

Please check buildlocal.sh for the script that builds a local copy of the xCAT packages.

@WZT666-dev
Copy link
Author

builddep.sh builds dependencies, not the xCAT packages themselves. Would you update the first post to contain more information about where you are building the packages, and why you need to build them?

Please check buildlocal.sh for the script that builds a local copy of the xCAT packages.

Thank you for your reply.
I noticed that it has now been updated to xcat2.17.0. I would like to try compiling and generating a new version of xcat installation package myself. I compiled it on the Centos8.5 system

@Obihoernchen
Copy link
Member

Obihoernchen commented May 29, 2024

xcat-dep is a little bit harder because the scripts are built to work in an IBM environment only.

But xcat-core you can compile like this:

Use CentOS/Alma/Rocky 8 container or VM and run:

yum -y install git rpm-build createrepo perl-generators perl-Pod-Html perl-Sys-Syslog perl-Digest-MD5 perl-DBI perl-DBD-SQLite perl-JSON perl-Time-HiRes perl-Text-Balanced perl-XML-Parser perl-XML-Simple
umask 0022
./buildcore.sh BUILDALL=1 UP=0 GPGSIGN=0 DEST="$(pwd)/out"

@WZT666-dev
Copy link
Author

xcat-dep is a little bit harder because the scripts are built to work in an IBM environment only.

But xcat-core you can compile like this:

Use CentOS/Alma/Rocky 8 container or VM and run:

yum -y install git rpm-build createrepo perl-generators perl-Pod-Html perl-Sys-Syslog perl-Digest-MD5 perl-DBI perl-DBD-SQLite perl-JSON perl-Time-HiRes perl-Text-Balanced perl-XML-Parser perl-XML-Simple
umask 0022
./buildcore.sh BUILDALL=1 UP=0 GPGSIGN=0 DEST="$(pwd)/out"

After following your instructions, I encountered an error as follows. I noticed that all the rpm packages in the error section need to be compiled in xcat dep. Is it not possible for me to compile and generate them

[root@t2 xcat-core]# yum install -y xCAT
Last metadata expiration check: 0:00:10 ago on Thu 30 May 2024 05:54:50 PM CST.
Error:
Problem: cannot install the best candidate for the job

  • nothing provides syslinux-xcat needed by xCAT-2.17.0-snap202405301752.x86_64
  • nothing provides elilo-xcat needed by xCAT-2.17.0-snap202405301752.x86_64
  • nothing provides perl(Expect) needed by xCAT-2.17.0-snap202405301752.x86_64
  • nothing provides perl-IO-Stty needed by xCAT-2.17.0-snap202405301752.x86_64
  • nothing provides xnba-undi needed by xCAT-2.17.0-snap202405301752.x86_64
  • nothing provides goconserver >= 0.3.3 needed by xCAT-2.17.0-snap202405301752.x86_64
  • nothing provides ipmitool-xcat >= 1.8.17-1 needed by xCAT-2.17.0-snap202405301752.x86_64
    (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
    [root@t2 xcat-core]#

@samveen
Copy link
Member

samveen commented May 30, 2024

@WZT666-dev Please add xcat-dep repository details into your yum config. that will fix the above issue, given that yum is being used.

Please visit http://xcat.org/download.html for details.

Please note that all the above information is also available in the xcat documentation at https://xcat-docs.readthedocs.io/en/stable/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants