LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-13-2011, 06:20 AM   #1
bunnycat
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
How to build redistributable binaries?


My intention is to generate redistributable binaries of a compiler which is a spinoff of Open64. I am doing a ./configure - make - make install on my build machine, and I archived the content of the installdir and moved it to another machine under another user for testing. Upon testing, I see that the copied files still tries to access some files at a path which was at my build machine - and hence I get permissions denied error. Prior to creating a tarball of installdir, I am making all the files as universally +rwx.

Code:
--In build directory
/path/to/srcdir/configure --prefix=/path/to/installdir
make
make install
I do not have root/sudo privileges. The crux is - how do I build in one machine and use the install-files in many others without running into permissions related problems? What are the rules to create universally distributable tarballs?

Last edited by bunnycat; 11-13-2011 at 06:22 AM.
 
Old 11-13-2011, 08:03 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
What are the rules to create universally distributable tarballs?
Okay, it's the distro that makes the "rules" (if any) in that you need to use the install-tool compatible software for that. On Fedora, for example, you'd use rpmbuild to make an rpm. Debian (and the drivatives) use deb and so on.

If you want to go really distro-independent, you need to go open source, with emphasis on source and either provide a build script (Arch Linux has pkgbuild for that) or rely on the know-how of the (end) user to compile the thing alone.

Thor
 
Old 11-13-2011, 01:56 PM   #3
bunnycat
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Actually at this present moment I am more keen on resolving the "permissions denied" error that is probably happening due to some flaw in my building. It would be great if you could comment on how I could fix it. I am building normally - as in first configure, then make and finally make install.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do GNU Makefiles have to be hacked to build Solaris binaries...? Alexvader Solaris / OpenSolaris 1 07-07-2010 03:31 PM
Binaries build with -g option takes more memory? Manjunath1847 Linux - Software 3 03-27-2009 12:17 PM
LXer: DirectX 9.0c March 2008 redistributable on Linux with Wine LXer Syndicated Linux News 0 03-23-2008 09:50 AM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM
Build i386 binaries based on i386 shared libraries .so linuxcrazyguy Linux - Software 0 03-19-2007 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration