LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2012, 10:17 PM   #1
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slack_64 14.2
Posts: 226

Rep: Reputation: 29
Software question


I'm thinking about trying to install some software, but I have a couple questions.

The software is proprietary, so no source download. What is available is either a DEB or an RPM file.

The questions.

1- Which, if either, would the better choice to build a TGZ from?

2- How does one figure out what dependencies there may be for such software?
 
Old 04-13-2012, 10:20 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
1. Both format can be used to compile and build tgz/txz package in Slackware. You can use a lot of examples in SlackBuilds. For example, you can pick Google Chrome as an example of building from DEB while LibreOffice is an example of building from RPM

2. In most cases, read the documentation. It's mostly included in the website of the application. Or, you can use the simple ./configure (from source) to see if you need an external libraries
 
Old 04-13-2012, 10:40 PM   #3
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slack_64 14.2
Posts: 226

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by willysr View Post
In most cases, read the documentation. It's mostly included in the website of the application. Or, you can use the simple ./configure (from source) to see if you need an external libraries
The software is draftsight, it is proprietary, so no source code(that I can find anyway) and no documentation that would help in determining dependencies. Since DEB's and RPM's are usually installed through package managers that handle deps automatically, is there a file within them that lists dependencies?
 
Old 04-14-2012, 12:29 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
the package is an archive compressed with ar, you can uncompress it inside an empty folder like this
Code:
mkdir temp
cd temp
ar x /path/to/draftSight.deb
you will find data.tar.gz (that contains all the files of the application -usually it's a .tar.lzma, as in google-chrome-) and some debian files: you are probably interested in the file named "control".

FYI, the tar.gz got inside an opt/dassault-systemes/draftsight/lib folder with pretty much all the needed libraries.
The only thing missing here
Code:
/opt/dassault-systemes/draftsight/bin/draftsight.bin: error while loading shared libraries: libaudio.so.2: cannot open shared object file: No such file or directory
was libaudio.so.2 from nas: as I don't need the whole nas stuff just to try draftsight (and being proprietary probably I will delete it in a few mins ), I built nas on slackware-current (I use that), extracted the library (just built and gzipped), copied in /opt/dassault-systemes/draftsight/lib/libaudio.so.2 and linked it in that folder also to libaudio.so.

EDIT: I just waved bye-bye to draftsight

Last edited by ponce; 04-14-2012 at 01:12 AM.
 
1 members found this post helpful.
Old 04-14-2012, 09:26 AM   #5
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slack_64 14.2
Posts: 226

Original Poster
Rep: Reputation: 29
First off, thank you for going through the trouble to help.

I was following along up to this point...

Quote:
Originally Posted by ponce View Post
copied in /opt/dassault-systemes/draftsight/lib/libaudio.so.2 and linked it in that folder also to libaudio.so.
I can't find the file libaudio.so to link it to..
 
Old 04-14-2012, 09:55 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
you have to build a 32bit version (draftsight is a 32bit application) yourself while creating a package for nas, as I said in the previous post

if you are feeling a little lazy , I got my own upped on my server, you can also download that inside of draftsight lib folder, uncompress it and create a versionless link
Code:
cd /opt/dassault-systemes/draftsight/lib/
wget http://ponce.cc/slackware/testing/other/libaudio.so.2.gz
gunzip libaudio.so.2.gz
ln -s libaudio.so.2 libaudio.so

Last edited by ponce; 04-14-2012 at 09:57 AM.
 
Old 04-14-2012, 10:47 AM   #7
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Rep: Reputation: 258Reputation: 258Reputation: 258
If you have an executable file and want to know the dependencies, you can use the "ldd" command.

For example:
Code:
ldd /bin/ping
That is sometimes helpful to determine the exact versions of libraries need to run a program. In some cases you can get "object" code rather than an executable program. The "object" files are the output of compiling source files. They are normally "linked" along with libraries and kernel entry-point addresses to create the executable program. In some cases you can get partial source, with some object files for the really proprietary parts of the software.

It can be frustrating to deal with companies who claim to support Linux but then don't provide source. They may be many versions behind the latest release of distros that they claim to support.
 
Old 04-14-2012, 11:06 AM   #8
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slack_64 14.2
Posts: 226

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by ponce View Post
you have to build a 32bit version (draftsight is a 32bit application)
I didn't catch the fact that it is 32bit. I'm running 64bit, and did not setup multilib, so this could be a problem.

Quote:
Originally Posted by Erik_FL View Post
If you have an executable file and want to know the dependencies, you can use the "ldd" command.
That is sometimes helpful to determine the exact versions of libraries need to run a program.
A useful bit of information, I shall try to remember...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
software installation question zoomzilla Linux - Newbie 17 12-05-2009 09:20 PM
Help with software question? DustFerret Linux - Newbie 5 08-08-2006 03:47 PM
Software question Pepa Linux - Software 0 08-22-2003 10:55 AM
Question on installing software and starting software rootlinux Linux - Newbie 5 01-19-2002 10:40 AM
Software Question PsychoRon Linux - Newbie 4 12-05-2001 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:42 PM.

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