Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to generate RPM package by compiling CloudStack version 4.10.0 with CentOS7 Source Code

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how CentOS7 compiles CloudStack version 4.10.0 to generate RPM packages. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Prerequisites for compiling Apache CloudStack

There are many prerequisites for compiling CloudStack. This article is compiled on a Linux CentOS7 system and managed using the RPM package.

The following are the minimum requirements for compiling CloudStack:

Maven (version 3)

Java (Java 8/OpenJDK 1.8)

Common tools for Apache web server (ws-commons-util)

MySQL

MySQLdb (provides python database API)

Tomcat 7

Genisoimage

Rpmbuild

Download the source package wget http://www.apache.org/dyn/closer.lua/cloudstack/releases/4.10.0.0/apache-cloudstack-4.10.0.0-src.tar.bz2

Or go to clone source code on github, and then cut to 4.10.0 branch

Extracted source code tar-xvf apache-cloudstack-4.10.0.0-src.tar.bz2

Configure Yum source cat / etc/yum.repos.d/mysql.repo [mysql-community] name=MySQL Community connectorsbaseurl= http://repo.mysql.com/yum/mysql-connectors-community/el/$releasever/$basearch/enabled=1gpgcheck=1eof for MySQL

Import GPG public key from MySQLrpm-- import http://repo.mysql.com/RPM-GPG-KEY-mysql

Install mysql-connectoryum install mysql-connector-python

Install yum install java-1.8.0-openjdk-devel.x86_64 genisoimage mysql mysql-server ws-commons-util MySQL-python tomcat maven such as openjdk,mysql,maven

Install netscaler Vmware and other jar to the local maven repository # enter the deps directory [root@czfbsdb500h01 cloudstack] # cd deps# execute the following wget to download the jar package wget http://zooi.widodh.nl/cloudstack/build-dep/cloud-manageontap.jarwget http://zooi.widodh.nl/cloudstack/build-dep/cloud-iControl.jarwget http://zooi.widodh.nl/cloudstack/build-dep/vmware-vim.jarwget http://zooi.widodh.nl/cloudstack/build-dep/vmware-vim25.jarwget http : / / zooi.widodh.nl/cloudstack/build-dep/vmware-apputils.jarwget http://zooi.widodh.nl/cloudstack/build-dep/cloud-netscaler.jar# is downloaded successfully and installed to the local maven repository [root@czfbsdb500h01 deps] #. / install-non-oss.sh

Generate RPM package cd packaging/./package.sh-d centos7

Note: the execution time of the first package is very long.

Generate the RPM package directory as follows: [root@czfbsdb500h01 x86x64] # pwd/root/apache-cloudstack-4.10.0.0-src/dist/rpmbuild/RPMS/x86_64

RPM package list

Thank you for reading! On "how CentOS7 source code to compile CloudStack version 4.10.0 to generate RPM package" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report