[liblouis-liblouisxml] Re: Serring the PKG_CONFIG_PATH Environment Variable

  • From: Michael Whapples <mwhapples@xxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 18 Jun 2012 13:08:41 +0100

Hello,
Some systems have the CD-rom/DVD-rom drive to automount, but it is highly dependent on whether you have a daemon running to do that for you. I think some of them have moved to using /media and subdirectories for automounted devices, in the past it used to be /mnt and subdirectories where people would mount devices.

If you need to do it manually then use the mount command. Normally for a CD you can do something like:
mount /dev/cdrom /mnt/cdrom
The above assumes that your system has the device file /dev/cdrom and a directory /mnt/cdrom to mount the drive to. I think on systems where /dev/cdrom exists, that is only a link to the actual device file, I think now the device files tend to be /dev/sr0, /dev/sr1, etc.

Use the tab completion to help you find the correct device files if you are unsure.

Michael Whapples
On 18/06/2012 13:01, Vic Beckley wrote:
Michael,

Thank you for this short lesson in Linux. This information is very helpful.

How do you access the CD-ROM drive? Where is it mounted by default? Do you
have to mount it manually?

Right now I am trying to master the command line interface a little before
moving into Gnome. I never could get my sound conflicts worked out between
the command line and Gnome.

Thanks again so much for your help.


Best regards from Ohio, U.S.A.,

Vic
E-mail: vic.beckley3@xxxxxxxxx


-----Original Message-----
From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of Michael
Whapples
Sent: Monday, June 18, 2012 5:21 AM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: Serring the PKG_CONFIG_PATH Environment
Variable

Hello,
May be time for the lesson on Linux (generally unix) files and where to
expect to find them.

Normally files in /etc and subdirectories are system wide configuration
files, so the file etc/bash.bashrc is the system wide configuation for
bash environments. If you don't have a ~/.bashrc file then you can
create one so that you have a user specific bash configuration. There
are other configuration files you possibly could use, I think the bashrc
files are specific to bash so would not help if you switched to zsh for
your shell, however I won't cover those files now as it might cause
confusion.

The above pattern of having a system configuration in /etc/ and a user
specific configuration in ~/ is very common with unix software.

Other useful directories:
/usr/local/, this tends to be a space for software you compile, the
subdirectories reflect the /usr subdirectories and have a similar
meaning but usually for software you have compiled yourself.
/usr/, this is for system software, normally provided by your distribution.
/usr/lib/, the location for the library files, things like the shared
object (.so) files (similar to dll on windows).
/usr/bin/, the directory for executables.
/usr/sbin/, this one I don't know what the full difference is but I
think its more that things for sysadmin work is in this directory rather
than /usr/bin/
/usr/share/, a directory for data files of installed software (eg.
liblouis tables is an example).
/etc/, the system configuration directory.
/var/, directory for things like log files (normally /var/log/), lock
information of applications using resources (normally /var/lock/) and
run information should only one instance of an application be running
(normally /var/run/). There probably are other subdirectories and other
uses but I think these are the main ones.
/home/, where user directories will be placed.
/dev/, access to the system devices, everything in Linux tends to be a
file, even devices.
/sys/, access to certain system settings, these normally are not
configuration files but active settings (eg. altering a setting on the
kernel, when altered change is immediate). Although not configuration
files, still file access as unix treats most things as files.

I think that has covered the main ones, others may exist and of course
one could configure a system to go against this convention (eg. on the
Mac some directories are different, user directories are in /users/).

As for searching the system, you can use tools which actively get
current files, eg. the ls command (similar to dir in windows). However
if you were to do a full system search, this can be very slow, so you
might want to look into tools which index files and so make searching
faster (the locate command is such a tool). Also gnome probably has its
own search tools, but I am just discussing the command line ones here.

I hope this has helped you.

Michael Whapples
On 18/06/2012 09:48, Vic Beckley wrote:
John,

Is there a way to search a file system tree for a specific file?

I can't find a .bashrc file. I found a file called /etc/bash.bashrc. Would
that be it?

Is pkgconfig a file or a directory? My /usr/local/lib directory is empty.
How else would I find out what to set this variable to?

My errors from configure were:

./configure: line 13558: syntax error near unexpected token
`BASE_DEPENDENCIES,'
./configure: line 13558: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, liblouis
libxml$

Where do I go from here?


Best regards from Ohio, U.S.A.,

Vic
E-mail: vic.beckley3@xxxxxxxxx

-----Original Message-----
From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of John J.
Boyer
Sent: Sunday, June 17, 2012 7:15 PM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Serring the PKG_CONFIG_PATH Environment
Variable

This variable tells the configure script where to find dependencies. You
should add a line like this to your .bashrc file and then log out and
log back in.

export PKG_CONFIG_PATH=/devel/lib/pkgconfig

The part after the = sign is system dependent. I can't say what it would
be on your system, but it might be /usr/local/lib/pkgconfig

John


For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com


For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: