LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2016, 05:38 AM   #1
Peter.H
LQ Newbie
 
Registered: Dec 2016
Location: Tasmania Australia
Distribution: Linux Mint
Posts: 3

Rep: Reputation: Disabled
Where does this header go?


I am trying to install CdCat from the source (the repository version is too old). The instructions include the line:
Quote:
- add libtar_listhash.h to include path
I understand this is a requirement to include a header in some file (or I might be wrong) but I have no idea which file I should edit. I know it is required as the make instruction throws up an error because it does not know where to look.

Can some kind soul point me in the right direction please?

Thanks, Peter

Last edited by Peter.H; 12-06-2016 at 05:41 AM.
 
Old 12-06-2016, 06:36 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,587

Rep: Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347
probably you need to edit a makefile and a missing -I<dir> should be added to somewhere.
probably you need to install libtar.

http://catb.org/~esr/faqs/smart-questions.html
 
1 members found this post helpful.
Old 12-08-2016, 08:26 PM   #3
Peter.H
LQ Newbie
 
Registered: Dec 2016
Location: Tasmania Australia
Distribution: Linux Mint
Posts: 3

Original Poster
Rep: Reputation: Disabled
Where does this header go?

Thanks pan64
I am afraid this is too hard for me alone. I found the makefile and the place to insert the include path however I cannot find the path the makefile requires. Libtar is installed but when I enter 'whereis libtar' I get no hits. If I open a directory of the root and search I find libtar files at /usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/modules but when I put this path into the makefile the make fails at this include.
If there is no simple solution I will write to the author (but don't expect a response). Perhaps I should just cut my losses.
Thanks for your thoughts, Peter
 
Old 12-08-2016, 08:48 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,763

Rep: Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684
a number of cistros like debian split off the development files from the run time files so you may have to install those as well probably so thing on the lines of libtar-dev, debian uses a -dev suffix for the dev files yum i think uses -devel, check your package manager
 
Old 12-09-2016, 01:28 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,587

Rep: Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347Reputation: 4347
you need to check libtar_listhash.h itself and use the directory. install libtar or libtar-dev if not found.
 
Old 12-10-2016, 10:39 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,610

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
Quote:
Originally Posted by Peter.H View Post
I am trying to install CdCat from the source (the repository version is too old). The instructions include the line:


I understand this is a requirement to include a header in some file (or I might be wrong) but I have no idea which file I should edit. I know it is required as the make instruction throws up an error because it does not know where to look.

Can some kind soul point me in the right direction please?

Thanks, Peter
like @pan64 said, if it is a fully qualified header file, put it in your base dir or sub dir, then in your main file or which ever c file you use just type this in the declarations area.

Code:
#include "libtar_listhash.h"
the quotes tell the compiler to look in the local dir your compiling out of for that header.

but you'd still need the object files or c file with the code to actually run the functions you are calling.

someone correct me if i am wrong on that last part.

note 2:

if it is not C then C++ and most others are pretty much the same?

Last edited by BW-userx; 12-10-2016 at 10:43 AM.
 
Old 12-10-2016, 10:49 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,610

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
To further inquire on this matter. Are you trying to install this one?

Hyper's CdCatalog
http://cdcat.sourceforge.net/web/uk/index.html

version 29. Aug 2013 Version 2.3.1

found this on it too,

Quote:
Compiling
Note: You only need this, if no binary for your operating system is not available or you want to use the latest development version.
http://cdcat.sourceforge.net/web/uk/compiling.html

here is a git repo one too

https://github.com/ypid/cdcat

here is a Source code archive
http://www.liberkey.com/apps/src/?app=CdCat

they may provide you with a better/easier means to compile and install it.

Last edited by BW-userx; 12-10-2016 at 10:54 AM.
 
Old 12-10-2016, 07:24 PM   #8
Peter.H
LQ Newbie
 
Registered: Dec 2016
Location: Tasmania Australia
Distribution: Linux Mint
Posts: 3

Original Poster
Rep: Reputation: Disabled
Solved thanks

Thanks to all who have made suggestions. Unfortunately the compile is too difficult for me.
I have solved my problem by using the windows version and running it under wine. It appears to be OK but I feel that is an inferior solution.
Thanks again, Peter
 
  


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
[SOLVED] c++ library including a header within a header knobby67 Programming 2 05-12-2016 07:14 AM
MAC header Incorrect and extra 2 bytes seen in Ethernet header pjlnaveen Linux - Networking 1 04-29-2016 06:13 AM
[SOLVED] Amavis: invalid header: all-whitespace header field deathsfriend99 Linux - Server 2 02-16-2012 10:41 AM
Want to add data in the header field of tcp/ip header Maitrikkshah Linux - Networking 1 08-06-2011 07:07 AM
How to check missing header files included from another header file adisan82 Linux - Software 1 01-28-2011 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:19 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