Sponsored Content
Full Discussion: compile rpm-4.0 source
Top Forums Programming compile rpm-4.0 source Post 5969 by LivinFree on Tuesday 28th of August 2001 12:03:48 AM
Old 08-28-2001

After you read the README and INSTALL files, look for a file called configure. If that exists, run it: ./configure.

You may need to edit the Makefile later on to reflect your system, but that will require more specific steps.

Once configure has run (if it exists), simply type make. Some times there is an option to make install - that will place the binaries where the author thought they should go.

These steps will not cover every complilation, but it should give you the basic steps for most of them.

HTH, HAND
 

10 More Discussions You Might Find Interesting

1. Programming

error trying to compile a c++ source file

i tried to compile a c++ file using the g++ command: g++ <filename>.cpp -out <output_file> and i received the following error message: ld.so.1: gcc: fatal: relocation error: file gcc: symbol bindtextdomain: referenced symbol not found Killed is it that i am using incorrectly the... (1 Reply)
Discussion started by: ldrojasm
1 Replies

2. Linux

Source Of Rpm's

Hi every one...i am new to linux and have a problem with rpm's. Do we have any facility to chk out the source code of rpm's.If yes plz specify the location so that i can explore a few... secondly can i know where we can get the source code of standard shell commands like sleep,ls,top....etc.I... (4 Replies)
Discussion started by: bssandilya
4 Replies

3. UNIX for Advanced & Expert Users

Does anybody know Kernel-2.4.33 source rpm URL??

Hi Everybody, I want to download the kernel-2.4.33 source rpm.Does anybody know from where should i download?? As in kernel.org there are .gz or .bz2 versions of kernel packages are available. Any help is welcome. Thanks, Sriram (2 Replies)
Discussion started by: sriram.ec
2 Replies

4. Linux

Converting source rpm to binary rpm

Hi, I need to install an rpm file,but I only have '.src.rpm' version of it. I want to convert it to a binary rpm. so I tried this rpm --rebuild somethin.src.rpm But I am gettin '--rebuild:Invalid option' as output Is there another way to rebuild source rpm.? Thanks in... (2 Replies)
Discussion started by: eamani_sun
2 Replies

5. UNIX and Linux Applications

How to compile from source code?

Hi all, I downloaded the source code for a pkg. But i dont know how to build from it? I have no prior experience in building from source,so could you pls help me? I tried ./configure(after entering into the dir containing the src codes) but it generated some errors!!!!! Some files... (1 Reply)
Discussion started by: wrapster
1 Replies

6. SuSE

How to install .src.rpm ? ( source rpm )

Hi, I have got few RPM's from rpmfind.net ( mainly gcc ). But it seems to be src files instead of the image. so I think we have to build the src files according to target machine using rpmbuild. Can any one help me with 1) Various options of rpm build that have to be taken care 2)... (3 Replies)
Discussion started by: Sivaswami
3 Replies

7. Red Hat

Source RPM issue

Hi, I have created one soruce rpm by using some help file on net. when i installed the rpm with command "rpm -i xxx.rpm", by default it got installed under "/usr/src/redhat/SOURCES/. I want to install these source file under /application/myapps/. Also i want some guidence to improve the source... (0 Replies)
Discussion started by: rajeshatbuzz
0 Replies

8. Solaris

Error when compile source code

Hello,I'm trying to compile source code for Nmap. My $PATH /usr/sbin:/usr/bin:/usr/openwin/bin:/usr/ucb:/usr/local/bin:/usr/css/bin I type ./configure and all goes great.When I type ./make or ./make it says make not found.Why?I need a correct path for make?Thanks in advance. (2 Replies)
Discussion started by: bgf0
2 Replies

9. AIX

How to compile a package in AIX when we download its source?

How to compile a package surce in AIX when we download its source? (2 Replies)
Discussion started by: johnveslin
2 Replies

10. Programming

Compile and debug Vim source code

Hi, I want to debug Vim source code with GDB but I can't get it. It seems to run without debugger. Here is my try. I have supressed output of most commands. Tell me if you need them. $ uname -mor 2.6.37-ARCH i686 GNU/Linux $ mkdir ~/birei && cd ~/birei $ wget... (2 Replies)
Discussion started by: birei
2 Replies
SYSCONFTOOL(1)							    sysconftool 						    SYSCONFTOOL(1)

NAME
sysconftool - install configuration files SYNOPSIS
sysconftool [options] [filename.dist...] DESCRIPTION
sysconftool is a development utility that helps to install application configuration files. sysconftool allows an existing application to be upgraded without losing the older version's configuration settings. A new version of an application often introduces new configuration settings. Sometimes obsolete configuration settings are removed. Existing configuration settings may also now have additional options, or certain options are no longer valid any more. Because of this, an application upgrade usually installs a fresh set of configuration files, containing a default configuration that's known to work. Keeping the existing files carries the risk of the application failing to function properly due to a configuration that is no longer valid. A typical application installation script copies over configuration files with default settings. Existing configuration files are backed up or overwritten. With sysconftool, an application will install a configuration file names filename.dist, instead of filename. Then, the application's installation script runs sysconftool. sysconftool copies filename.dist to filename, but also checks if filename from an older version of the application already exist. If filename an older sysconftool-installed configuration file, it's configuration settings replace the defaults in filename.dist, which is then subsequently installed as filename. sysconftool is smart enough to: o Remove configuration settings that no longer exist. o Add new configuration settings. o Do not preserve an older configuration setting if there's a possibility that it is no longer valid in the new version of the application. sysconftool produces a short report when it runs. The report lists every configuration setting in $filename.dist, and its disposition. The possible dispositions are: new This a new configuration setting that wasn't found in the existing $filename. unchanged This setting's value was taken from the existing $filename, replacing the default value provided by $filename.dist. UPDATED This setting has been previously set in $filename, but the setting's value may no longer be valid in the new version of the application, so its default value is taken from $filename.dist, and it may need to be manually adjusted. All this logic is based on some additional metadata that must be included in each configuration file, that sysconftool reads. For this to work, both the old and the new version of the application must be sysconftool-ized. sysconftool operates in a fail-safe mode. If the old version did not use sysconftool, $filename is backed up to $filename.bak, and $filename is copied to $filename. This is what would essentially happen anyway without sysconftool. The local configuration needs to be reentered into $filename, so nothing is lost. However, the next upgrade will see sysconftool do its job. ADDING SYSCONFTOOL SUPPORT TO AN EXISTING APPLICATION
sysconftool requires the application to use autoconf and automake. The first step is to run the sysconftoolize script from the application's source directory. sysconftoolize copies the sysconftool script to the current directory, and appends a default install-configure rule to Makefile.am. After running sysconftoolize the macro AC_PROG_SYSCONFTOOL must be manually added to configure.in, and Makefile.am must be modified as follows. Makefile.am must be modified to install configuration files as filename.dist instead of filename. The default install-configure rule assumes that sysconf_DATA lists all configuration files in sysconfdir, and runs sysconftool on them. This will usually have to be modified, according to the application's individual needs. Finally, Makefile.am must be modified to distribute the sysconftool script in the application's source distribution. Adding sysconftool to EXTRA_DIST is what's needed in most cases. Finally, certain sysconftool magic incantations must be added to the application's configuration files, see sysconftool(7)[1] for more information. The last step involves updating the application's INSTALL instructions, so that the application can be properly installed. The following instructions must be added to INSTALL: 1. Run "make install-configure" after "make install". 2. If this is the first sysconftool-ized version, DO NOT simply copy over the old configuration files, and overwrite the new configuration files. Instead, manually edit each configuration file, and manually reset each configuration setting. This is because the new configuration files include the magic code for sysconftool, which would be lost when the configuration file is overwritten. 3. If this is not the first sysconftool-ized version, the output of make install-configure must be reviewed in order to manually adjust or tweak what sysconftool did. Many large configuration files can result in lots of output, so the output of make install-configure should be saved into a file, and reviewed. SEE ALSO
sysconftoolcheck(1)[2], sysconftool(7)[1]. AUTHORS
Double Precision, Inc. NOTES
1. sysconftool(7) [set $man.base.url.for.relative.links]/sysconftool.7.html 2. sysconftoolcheck(1) [set $man.base.url.for.relative.links]/sysconftoolcheck.1.html Courier Mail Server 04/05/2011 SYSCONFTOOL(1)
All times are GMT -4. The time now is 09:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy