LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 04: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 04:41 AM.
 
Old 12-06-2016, 05:36 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
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, 07: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, 07:48 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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, 12:28 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
you need to check libtar_listhash.h itself and use the directory. install libtar or libtar-dev if not found.
 
Old 12-10-2016, 09:39 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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 09:43 AM.
 
Old 12-10-2016, 09:49 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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 09:54 AM.
 
Old 12-10-2016, 06: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



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

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

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