Some software packages end with. src. rpm. These software packages are rpm packages that contain source code and need to be compiled during installation. There are two ways to install such software packages:
Method 1:1. Execute rpm-I your-package.src.rpm2. cd/usr/src/redhat/SPECS3. rpmbuild-bp your-package.specs A specs file with the same name as your package4. cd/usr/src/redhat/BUILD/your-package/a directory with the same name as your package5 ../co
Require_distribution: 1
Vendor: twLUG
Require_vendor: 1
Packager: Penelope Marr
Additional important information
There are actually a lot of important details about the RPM Package File creation process, which must be kept in mind. please refer to [Building RPMs] in the RPM-HOWTO first.
4. a simple example
-=-
Let's start with a helloworld RPM Package File, which is easy to use. You can perform self-testing based on the entire example because they are small and simple and should not affec
Recompile the GCC-4.3.0-general Linux technology-Linux programming and kernel information, below is the details to read. GCC is a set of program compilers in Unix, including C, C ++, Fortran77, and Java. Upgrading GCC helps shorten the compilation process and generate more efficient programs, however, the compiled program may be large. the latest version is 4. 3. next we will start to install version 4.3.
First of all, make sure that your Unix environment has the compiling language. The system
Make RPM package, can be convenient for future maintenance. Unify the standard
Yum Install RpmdevtoolsAfter installation, use the Rpmdev-setuptree command to create the directory structure of the RPM package. The default is under $home under Rmpbuild, or it can be configured by ~/.rpmmacros.
Spec documentation is the core of making RPM packages.
Here's the copy from Fedora.
create a new. spec file now, you need to~/rpmbuild/specs directory,
Some software packages end with. SRC. rpm, which includes
Source codeThe RPM package must be compiled during installation. There are two ways to install such software packages:
Method 1:1. Execute rpm-I your-package.src.rpm2. CD/usr/src/RedHat/specs3. rpmbuild-BP your-package.specs A specs file with the same name as your package4. CD/usr/src/RedHat/build/your-package/a directory with the same name as your package5 ../configure this step is the sam
.
Note: You can go to www.kernel.org to download the kernel source code of a certain version. However, after downloading and compiling, You need to replace (install) The fc14 kernel image,
In this way, the kernel module compiled with the kernel source code of this version will pass smoothly in the insmod of the local machine.
Run
Rpm-uvh kernel-2.6.35.6-45.fc14.src.rpmRun
Cd/root/rpmbuild/SPECS
Note: fedora14 uses/root/rpmbuild as the main directory
From: http://www.cnblogs.com/einyboy/archive/2012/09/13/2683015.html
Method 1:
Take the setarch-1.3-1.src.rpm software package as an example (you can go to csdn http://download.csdn.net/source/215173?acommentdownload)
Assume that the file already exists in/usr/local/src. Run rpmbuild -- rebuild -- clean setarch-1.3-1.src.rpm in this directory
If successful, the RPM file of the setarch-1.3-1.i386.rpm is generated in the/usr/src/RedHat/RPMS/i386/directory.
The next step is the RPM installation p
true.
Config. use_transactional_fixtures = false
# If true, the base class of anonymous controllers will be inferred
# Automatically. This will be the default behavior in future versions
# Rspec-rails.
Config. infer_base_class_for_anonymous_controllers = false
# Run specs in random order to surface order dependencies. If you find
# Order dependency and want to debug it, you can fix the order by providing
# The seed, which is printed after each run.
."
Bill ShannonDistinguished engineer, Sun Microsystems
Glassfish is free, and it is open source. I repeat: glassfish is free, and it is open source. glassfish uses the OSI-certified cddl license.
How can developers contriure to the future of Java ee?
There are always ways to contribute to the future of Java ee 5. perhaps the best approach is to go to the Java EE hub page, read the tutorial, download the SDK, try it out, an
)
Jwsdp and Apache axis are two independent web service libraries, developed by two different developement organizations, sun and the Apache Group. Axis implements the JAX-RPC and SAAJ specifications. axis does not include an application server, so you need to install Tomcat, websphere, Etc., to deploy Web Services with axis. Jwsdp implements the JAX-RPC and SAAJ specs, all also includes several other Web service
CD faad2Autoreconf-VIF./Configure -- prefix =/usr -- with-mp4v2 -- enable-sharedMake; make install
Faac Compilation
CD faacChmod + x Bootstrap./Bootstrap./Configure -- prefix =/usr -- with-mp4v2 -- enable-sharedMake; make install
7. Support for 3GP format, which is also supported by many mobile phones. Because mobile phone users are our main users, compilation must be supported.
Add -- enable-amr_nb -- enable-amr_wb parameters when compiling, according to the prompts of the compilation system,
-lssl -lcrypto -lz -lnetsnmp -lcrypto -lm -lwrap -lcrypto Enable proxy: no Enable agent: no Enable Java gateway: no LDAP support: no IPv6 support: no************************************************************ Now run 'make install' ** ** Thank you for using Zabbix! **
Exit compilation after make is successful
Create an R
Recently, tengine has been involved in CentOS 6.4. Recently, I saw how to create an rpm package, so I had the idea of creating an rpm package.
1. Install the CentOS development environment integration package and tengine dependency package
Yum groupinstall "Development Tools"Yum install pcre-develYum install openssl-devel
2. Create a tengine rpm package and use test as a non-root user.
Su-testMkdir-p ~ /Rpmbuild/{BUILD, RPMS, SOURCES, SPECS, SRPMS}
3.
the tag name.
$ git tag -a Push tag to git Server
$ git push --tagsHere, 3. Create a spec file and run it in shell:
$ pod spec create The 4. verify the validity of the spec file after the spec file is modified, run
pod spec lint Modify your spec file or code according to the output prompt until you can pass the code.
5. Create spec repository (spec repository) in addition to the code repository created above, you also need to create a spec repository to store spec. The directory structure shoul
Build rpmbuild of local yum source and yumrpmbuild
Before creating an internal yum source, you must standardize the installation directory of the software and package the existing applications.
There are currently two rpm packaging tools available: rpmbuild and fpm.
-Rpmbuild
The key to rpmbuild is to write the spec file.Environment Construction
Yum-y install rpm-build rpmdevtools
Useradd rpm; su rpm
Note: rpm packaging requires a specific directory. In a recent version, rpmbuild can create a p
Sometimes in order to facilitate the installation of the source package, we need to customize the software package requirements, we will be some source packages according to our needs to make RPM package, when the source package can be directly compiled to get the binary installation package and any other package. Spec file is the most important part of making RPM package, the RPM package is made according to spec file. Here's how I'll start by making php rpm. The following operations are perfor
CD are lower than those in the yum source of the network, so nginx cannot be used properly, because we do not know what the GD library has been upgraded. The solution is to write down the packages that need to be depended on during packaging and download these packages. Install these packages on the host system. Of course, these packages are also dependent on each other. So you have to find all dependencies and install them accordingly.
2. RPM package creation process
1. Install the tool
Yum-y
:2345 '/etc/init.d/httpd
Sed-i ' 2a # description:apache Web server '/etc/init.d/httpd
Chkconfig--add httpd
%preun
/ETC/INIT.D/HTTPD stop
Chkconfig--del httpd
%changelog
* Tue Mar 3 2015 Ilanni
2.2.27
--
Iv. Generate related Catalogs
To generate the relevant directory for the RPM package, we can create it either by hand or through the Rpmbuild command. As follows:
Rpmbuild Httpd.spec
Note: When using Rpmbuild to generate the relevant directory of the RPM package, the erro
/driver/release.fclibs.txt[Root@blog.hexu.org ~]$ CD server/linux/driver/[Root@blog.hexu.org driver]$ RPM-IVH netxtreme2-7.8.56-1.src.rpm
To reconstruct the RPM package for the corresponding system:
The code is as follows
Copy Code
[Root@blog.hexu.org driver]$ cd/usr/src/redhat/specs/[Root@blog.hexu.org specs]$ RPMBUILD-BB Netxtreme2.spec
To install a new RMP
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.