SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
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.
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
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.
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
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.