LinuxQuestions.org
Visit Jeremy's Blog.
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 05-25-2011, 10:35 AM   #1
alexbrui
Member
 
Registered: Nov 2009
Location: Ukraine
Distribution: Slackware 13.37
Posts: 38

Rep: Reputation: 0
How to install and use several versions of libjpeg?


I need to build HDF library from sources. This library requires libjpeg-6b and won't compile with newer libjpeg-8 which already available.

Well, I download and install libjpeg-6b, but can't understand how to force use this library instead system default. Can anyone help me with this?

P.S.: I try to find any SlackBuilds for HDF4, but found them only for HDF5.
 
Old 05-25-2011, 11:01 AM   #2
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 201

Rep: Reputation: 6
@alecbrui

Although HDF4 is still funded, new users that are not constrained to using HDF4, should use HDF5 .

Regards
Lawrence
 
Old 05-25-2011, 11:06 AM   #3
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
What you can do, when you go to compile the version of libjpeg-6b, is change the PREFIX.
Code:
libjpeg-6b$ ./configure --prefix=/opt
Of course, you can set the prefix value to be anything, just make sure that you do not clobber libjpeg-8. If you are trying to build HDF from SlackBuilds, you will probably have to modify the hdf5.SlackBuild file to change the "--cflags" and "--include" options to the compiler, to point it to wherever the "lib/" and "include/" directories for libjpeg-6b are. Assuming you installed libjpeg-6b to /opt, these would be a /opt/lib and /opt/include.

Are you trying to build HDF4, instead of HDF5? If so, download the HDF4 sources from the project's website, and then try writing your own SlackBuild to compile it. The guide to making your own SlackBuilds is here, and you should also consult the SlackWiki page on writing SlackBuild scripts.
 
Old 05-25-2011, 11:18 AM   #4
alexbrui
Member
 
Registered: Nov 2009
Location: Ukraine
Distribution: Slackware 13.37
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zasavage View Post
Although HDF4 is still funded, new users that are not constrained to using HDF4, should use HDF5 .
Some software (e.g. mod14 algorithm implementation) still use only HDF4.

Quote:
Originally Posted by indienick View Post
What you can do, when you go to compile the version of libjpeg-6b, is change the PREFIX.
Thanks, I miss this solution.

Quote:
Originally Posted by indienick View Post
Are you trying to build HDF4, instead of HDF5?
Yes, I already have HDF5 installed and need HDF4. I can't find SlackBuild for it, so I decide to create my own. But stuck with libjpeg problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
libjpeg.so.62 tesseract4d Linux - Newbie 1 09-13-2010 08:47 AM
unable to install php5 - configure: error: libjpeg.(a|so) not found. vikram_cvk Linux - Software 6 11-01-2009 08:00 AM
opengroupware cant install on 4 versions brianmay27 Linux - Software 2 09-13-2007 08:45 AM
Install two versions CrashedAgain Debian 0 04-30-2006 11:39 AM

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

All times are GMT -5. The time now is 03:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration