General :: How To Create Binary RPM From Source Tar

Jun 7, 2011

Right now to install software from source I do a ./configure && make && make install which doesn't allow for easy uninstallation (some don't come with an 'uninstall' goal, and if they do you have to keep the source around). I'd like to learn how to create binary RPMs from source tar.gz files (one reason being that it makes for easier uninstallation). I tried the following but it complains with the following errors:

Code:
$ rpmbuild -ta mysource.tar.gz
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)

Apparently that's what happens when there is no SPEC file in the tarball. But all the tars I've tried give this same error. Is there a simple way to create binary RPMs from source files - as an example, this source tar [URL].

View 4 Replies


ADVERTISEMENT

General :: Building RPM From Source (Binary Package)

Apr 15, 2010

I have this source.tar.gz, I unpack it and cd into it, then I

Code:
$mkdir build
$./configure --lots-of-options --prefix=$PWD/build
$make
$make install

So I have inside my build folder, 4 folders, usr, lib, man, share. How do I convert this into a binary rpm package...?

View 4 Replies View Related

General :: Binary And Source Packages Difference

Feb 4, 2011

Very often we get to hear Binary / Source when we talk about installing packages...From what I understand "Binary" refers to a natively packaged installation by a Distro wheras installation from Source would entail fetching the files, Compiling and then building the package. When we say "source" where do these codes reside? Is it diffferent for different distros or one common source like "sourceforge.net" or similar?! I know it sounds silly but what is the origin of the source codes??

One general remedy if a package is not found is to install from source... So , source would refer to a "tar.gz" or "bz2" archive present at some location like "[URL]". In some cases , id it possible that some packageas are not available in "Source". When I tried to build a package for a particular distro , I was told that some dependencies are not un the source ...What is the meaning of this? So do all distros maintain the codes in their official repositories?

View 1 Replies View Related

General :: Command To Find The Source Package Of A Binary?

May 30, 2010

I know there's a which command, that echoes the full name of a binary (e.g. which sh). However, I'm fairly sure there's a command that echoes the package that provides a particular binary. Is there such a command? If so, what is it? I'd like to be able to run this:

commandName ls and get coreutils for example.

View 1 Replies View Related

General :: Using Fork() To Create A Binary Tree?

Sep 26, 2010

I am working on a project where I need to use the C language to generate a tree of processes. I understand how fork() works but I cant seem to get fork() to create two children from one parent and then have the two children create two more children.

Right now what i am seeing is a chain...where the parent creates one child...and that child creates another ONE child..etc.

Here is what I have so far:

for (i=0; i<n;i++){
if (childpid = fork()) break;
}
if (childpid == -1){
perror ("

[Code]....

View 3 Replies View Related

Security :: Tips To Run Unkown-source-binary?

Feb 27, 2010

I got some binaries from internet (amule), but am afraid of using them, exposing my system. Since some run long simulations, it is not desirable to run in slow VM.

What do you gurus say if I run it as a new user? So the binaries would just be able to read and execute my binutils... Is that harmfull?

View 7 Replies View Related

CentOS 5 :: Get The Source Of Vsftpd That Matches The Binary Distribution?

Aug 3, 2009

When I do a yum or an initial load of vsftpd, I get binary that works. I got the source file "vsftpd-2.0.5-12.el5_3.1.src.rpm" from [URL] to make a change to add chown_upload_mode to version 2.0.5

With no changes to the source, the program works but does not respond to the service command properly. See [URL]

How do I get the source of vsftpd that matches the binary distribution?

View 3 Replies View Related

Ubuntu :: Open Source Virtual Machine - Study The Source In Order To Create My Own?

Jun 28, 2011

Is there any open source virtual machine so i can study the source in order to create my own? i'm gonna write my own, so it doesNT matter if license does not allow further development of the code.

View 1 Replies View Related

General :: Create Download Directory And Source File

Aug 5, 2011

i just uppgraded to Centos 6. Linux 2.6.32-71.29.1.el6.i686 on i686. now im getting some troubble whit this file: wget [URL]... i create a downloads directory and download the source file and--

mkdir $HOME/downloads
cd $HOME/downloads

But when i try to build courier-authlib whit this comand: #sudo rpmbuild -ta courier-authlib-0.63.0.tar.bz2. I get this:

[code]...

what can be the reason?

View 5 Replies View Related

Software :: Create Binary File With Text In It?

Nov 17, 2010

How to create binary file with text in it, something like

Quote:

Hola Mundo!

I want it binary, because I want to execute it directly from Bios before Windows.

View 7 Replies View Related

General :: Create A Data Source In Tomcat 6 That Points To Mysql?

May 30, 2010

I am using liferay5.2 with tomcat 6. after installation of liferay5.2 i am unable to configure the datasource that points to the database mysql.without this liferay wont function. how to create a mail session in tomcat that points to the mail server. i am using fedora 6.

View 5 Replies View Related

Software :: Create Iptables Binary To Use It In An Android Application?

Jan 9, 2011

how to create iptables binary, that i can use in my android application for performing some firewall related functionality like restricting some websites/packet filtering. and will it be possible to alter the rules later?iptables binary will contain the rulesets stored and which can be modified. how this can be achieved.?

View 2 Replies View Related

Fedora :: 12 Restored Files From USB Key - Source Files Are All Binary?

Feb 11, 2010

Before installing Fedora on my laptop I backed up my files onto a USB key. I wiped the hard disk and installed Fedora 12. I copied my files back to my home directory - but all the text files are now binary! Any ideas why this would be or how to fix it??---------- Post added at 10:54 AM CST ---------- Previous post was at 10:35 AM CST ----------Hmm it seems that only some files are binary. Looks like some .tgz files are corrupted too.---------- Post added at 11:02 AM CST ---------- Previous post was at 10:54 AM CST ----------Damn - I wonder if the files weren't completely written to the usb key before I removed it. I don't remember their being a safe mount option in Fedora 10 - but I definitely unmounted it before removing it from the laptop.

View 1 Replies View Related

Programming :: Finding A Utility To Combine Two Or More Binary Files Into A Single Binary File?

May 5, 2011

Is there any Linux utility to combine two or more binary files into a single binary file ?

View 7 Replies View Related

Programming :: Version Info Coded Into ELF Binary / Author And Company Name Into ELF Binary?

Nov 30, 2010

How to coded version info and other information likes author and company name into the ELF binary?

I prefer the put the version info during build step.

View 5 Replies View Related

Red Hat / Fedora :: How To Create Data Source

May 30, 2011

I am working in Redhad linux, how to create Data source Name in Linux..

View 1 Replies View Related

OpenSUSE :: Installation Source Unusable - Trying To Create VM

Jul 20, 2009

I am running openSUSE 11.1. I installed the Hypervisor and tools and booted into: 2.6.27.23-0.1-xen. I'm trying to install Ubuntu LTS 8.04.3 as a guest using the "Create a Virtual Machine" GUI/wizard. I specify "other" since no Debian-based distro is offered under "Type of Operating System". Under "Installation Source" for "Operating System Installation" I Add a Virtual Disk of "phy:/dev/sr0" using protocol "phy". It can obviously read the drive since it recognizes that it is 0.6 GB (the media contains a burned & bootable (from ISO) DVD - the files are extracted).

However, when I proceed I am thrown an Error:
"The installation source is unusable." with Details:
"0.6 GB CD-ROM or DVD (phy:/dev/sr0)"
Am I supposed to do something different?

View 6 Replies View Related

Debian Installation :: Create A Deb Package From Source Files

Feb 25, 2015

I have a project and would like to create a .deb package that brought on any computer with debian distribution installs it in your home user who is installing.I followed a guide and managed to create a deb package from my sources with FPM. But creates them with root permissions and tells me that I should create a script before installation to change the permissions.

View 2 Replies View Related

Ubuntu :: Create Non-open Source Programs To Be Run On A System?

Feb 6, 2011

I know that Linux is open source but there must be ways of creating non-open source programs to be run on a Linux system? Does such a thing exist and/or have a name? Would any source code that has been compiled be unable to be read by anyone properly unless the soruce code was released?

View 9 Replies View Related

Programming :: Create Commercial(closed Source) Softwares?

Mar 18, 2010

I'm asked to create a network tool in C and a GUI API in linux platform by my company. I'm aware of the GPL & GLPL licenses , but not clear whether I can create a proprietary commercial software with the tools & libraries available in Linux: My tool will be written in C and will be using the some network library functions in the Linux and some header files .(Their license is GPL) , also the GUI i'm planning to develop is using GTK and Glade / Anjuta, (GTK is based on GLPL license) , I will be using GCC compiler for C programs,

Please let me know whether it is possible to create a closed source-commercial software using the above tools/libraries, if not possible is there any workaround is there for creating commerical tools in linux Can I make some part of my code closed and some parts open? Also please let me know which is the best GUI building programming language/IDE that can be used with C programs in linux

View 4 Replies View Related

Programming :: Create A .bin File From Java Source Code?

Jan 4, 2010

i am trying to generate a linux executable data (bin data) from my java source code.

View 4 Replies View Related

Red Hat / Fedora :: Makfile Which Can Compile A Tree For Source File And Create Output In Separate Directory

Jul 29, 2010

I am new to linux platform and my requirment is to write a makfile which can compile a tree for source file and create the output in separate directory .

View 1 Replies View Related

Slackware :: Clementine Doesn't Play Streams -> "Couldn't Create Gstreamer Source Element For <url?

Nov 8, 2010

since I had to re-install Slackware 13.1 on my netbook and I have now build Clementine on it. I can hear webstreams on my main machine, also running Slackware 13.1 and Clementine 0.5.When I try to play a stream I get this error message in the console:Quote:Couldn't create gstreamer source element for <streamURL>

View 3 Replies View Related

General :: Possible To Run An X86 Binary On An ARM Processor?

Dec 13, 2010

Is it possible to convert/recompile an already compiled x86 binary into an ARM binary?I'm using a BeagleBoard with a command-line Ubuntu (Maverick) and want to run a Ventrilo server but the x86 executable they supply cannot be run on the hardware as far as I can tell (most likely due to differing architecture).Unfortunately I don't have access to the source to allow me to recompile it natively.

View 3 Replies View Related

General :: See If A Binary Is Running?

Aug 19, 2010

I'm trying to autodetect if certain applications (for example, Firefoxre running. I figured the easiest way would be by checking process names.

View 2 Replies View Related

General :: Creating A New Binary?

Jan 5, 2011

I need to change the functions of some linux commands. We can't edit the binary files provided in /bin, is there any other method other than alias.For ex. - I need to change the function chmod so that it takes only three consecutive integers as input (chmod 777 filename) and nothing else ? Do I have to write by own code for it, or is there any other alternate method.

View 2 Replies View Related

General :: FTP Always In Binary Mode?

Dec 27, 2010

In a DOS prompt, I would like to ftp ASCII get a file from a Linux machine. The file was created in vi, just a normal text file.in DOS prompt:

Code:
ftp> ascii
200> Switching to ASCII mode.

[code]...

View 3 Replies View Related

General :: Can't Execute Binary On Ubuntu

Feb 11, 2010

Trying to setup a new Ubuntu machine and just downloaded 'p4' (Perforce command line client). It's a single file download - a statically-linked binary executable, so I just did:

wget [URL]

...right into /usr/bin. Simple enough. Except:
root@aj-ubuntu:/usr/bin# ll p4
-rwxr-xr-x 1 root root 748808 2010-02-11 16:54 p4
root@aj-ubuntu:/usr/bin# ./p4

[Code].....

View 6 Replies View Related

General :: Specify The Location Of Libraries To A Binary?

Sep 25, 2010

I'll be using a specific example, but really this generalizes to pretty much any binary on linux that can't seem to find its' dependent libraries. So, I have a program that won't run because of missing libraries:

./cart5: error while loading shared libraries: libcorona-1.0.2.so: cannot open shared object file: No such file or directory

ldd sheds some light on the issue:
linux-vdso.so.1 => (0x00007fff18b01000)
libcorona-1.0.2.so => not found
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6

[Code]....

View 2 Replies View Related

General :: Pack Some Binary Blobs With Rpm?

Nov 3, 2010

Suppose i have some binary blobs in ~/pkg/opt, ( I created those with the standard ./configure, make, make DESTDIR=~/pkg/opt install ).Is it possible to pack this structure into an installable rpm that can be installed/uninstalled from a RHEL/CentOS system...? rpm -ivh my_package.rpm ? Doing this in Slackware is easy, as well as in Arch, one installs to a fakeroot ( pkg ), creates a PKGBUILD, and runs makepkg -R PKGBUILD, this creates an installable Arch Package. But i am not very familiar with the more fashionable package formats, *.debs and *.rpms. Can i just pack the thing from binary, or do I have to build it and pack it in the process? makepkg -R PKGBUILD just packs it if one is lazy enough to write the whole PKGBUILD.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved