Path
Peter Hindrichs
pth at ispnet.ca
Tue Sep 29 18:21:37 PDT 2009
On 2009-09-29, at 21:13 , Ryan Schmidt wrote:
> On Sep 29, 2009, at 19:49, Peter Hindrichs wrote:
>
>> On 2009-09-29, at 20:31 , Ryan Schmidt wrote:
>>
>>> Bash might look in one of several files for its initialization
>>> instructions. These files are
>>> called .profile, .bash_profile, .bashrc, .login, and .bash_login,
>>> and would be directly in your home directory. Which of those files
>>> do you have, and what is their contents?
>>
>> Not sure how to go about this.
>>>
>
> You could find out which of these files exist by running these two
> commands:
>
> cd ~
> ls -l .profile .bash_profile .bashrc .login .bash_login
>
> For each file that it shows existing, you could open it into
> TextEdit using e.g.:
Freedom:~ peterhin$ ls -
l .profile .bash_profile .bashrc .login .bash_login
ls: .bash_login: No such file or directory
ls: .bash_profile: No such file or directory
ls: .bashrc: No such file or directory
ls: .login: No such file or directory
-rw-r--r--@ 1 peterhin staff 454 28 Sep 09:30 .profile
>
> open -e .profile
>
> and copy and paste the contents into your reply email.
This is what I get for .profile
MANPATH=/opt/local/share/man:$MANPATH
PATH=/opt/local/bin:/opt/local/sbin:$PATH
##
# Your previous /Users/peterhin/.profile file was backed up as /Users/
peterhin/.profile.macports-saved_2009-09-28_at_09:30:38
##
# MacPorts Installer addition on 2009-09-28_at_09:30:38: adding an
appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with
MacPorts.
>
>
>>> What's in /usr/local? Find out with:
>>>
>>> find /usr/local
>>
>> This is what I have
>>
>>
>> Freedom:~ peterhin$ find /usr/local
>> /usr/local
>> /usr/local/bin
>> /usr/local/bin/foomatic-gswrapper
>> /usr/local/bin/foomatic-rip
>> /usr/local/bin/hpijs
>> /usr/local/clamXav
>> /usr/local/clamXav/bin
>> /usr/local/clamXav/bin/clamav-config
>> /usr/local/clamXav/bin/clamconf
>> /usr/local/clamXav/bin/clamdscan
>> /usr/local/clamXav/bin/clamdtop
>> /usr/local/clamXav/bin/clamscan
>> /usr/local/clamXav/bin/freshclam
>> /usr/local/clamXav/bin/sigtool
>> /usr/local/clamXav/etc
>> /usr/local/clamXav/etc/clamd.conf
>> /usr/local/clamXav/etc/freshclam.conf
>> /usr/local/clamXav/include
>> /usr/local/clamXav/include/clamav.h
>> /usr/local/clamXav/lib
>> /usr/local/clamXav/lib/libclamav.6.dylib
>> /usr/local/clamXav/lib/libclamav.a
>> /usr/local/clamXav/lib/libclamav.dylib
>> /usr/local/clamXav/lib/libclamav.la
>> /usr/local/clamXav/lib/libclamunrar.6.dylib
>> /usr/local/clamXav/lib/libclamunrar.a
>> /usr/local/clamXav/lib/libclamunrar.dylib
>> /usr/local/clamXav/lib/libclamunrar.la
>> /usr/local/clamXav/lib/libclamunrar_iface.6.so
>> /usr/local/clamXav/lib/libclamunrar_iface.a
>> /usr/local/clamXav/lib/libclamunrar_iface.la
>> /usr/local/clamXav/lib/libclamunrar_iface.so
>> /usr/local/clamXav/lib/pkgconfig
>> /usr/local/clamXav/lib/pkgconfig/libclamav.pc
>> /usr/local/clamXav/sbin
>> /usr/local/clamXav/sbin/clamd
>> /usr/local/clamXav/share
>> /usr/local/clamXav/share/clamav
>> /usr/local/clamXav/share/clamav/daily.cld
>> /usr/local/clamXav/share/clamav/freshclam.log
>> /usr/local/clamXav/share/clamav/main.cld
>> /usr/local/clamXav/share/clamav/main.cvd
>> /usr/local/clamXav/share/clamav/mirrors.dat
>> /usr/local/clamXav/share/man
>> /usr/local/clamXav/share/man/man1
>> /usr/local/clamXav/share/man/man1/clamconf.1
>> /usr/local/clamXav/share/man/man1/clamdscan.1
>> /usr/local/clamXav/share/man/man1/clamdtop.1
>> /usr/local/clamXav/share/man/man1/clamscan.1
>> /usr/local/clamXav/share/man/man1/freshclam.1
>> /usr/local/clamXav/share/man/man1/sigtool.1
>> /usr/local/clamXav/share/man/man5
>> /usr/local/clamXav/share/man/man5/clamd.conf.5
>> /usr/local/clamXav/share/man/man5/freshclam.conf.5
>> /usr/local/clamXav/share/man/man8
>> /usr/local/clamXav/share/man/man8/clamav-milter.8
>> /usr/local/clamXav/share/man/man8/clamd.8
>> /usr/local/etc
>> /usr/local/etc/foomatic
>> /usr/local/etc/foomatic/direct
>> /usr/local/etc/foomatic/filter.conf
>> /usr/local/etc/foomatic/filter.conf.sample
>> /usr/local/share
>> /usr/local/share/doc
>> /usr/local/share/doc/hplip-3.9.2
>> /usr/local/share/doc/hplip-3.9.2/COPYING
>> /usr/local/share/doc/hplip-3.9.2/copyright
>> /usr/local/share/doc/hplip-3.9.2/README_LIBJPG
>> /usr/local/share/man
>> /usr/local/share/man/man1
>> /usr/local/share/man/man1/foomatic-rip.1
>> /usr/local/share/man/whatis
>
> Ok, that's not so bad. You can keep /usr/local/bin in your path.
> Just be aware that you shouldn't install software in /usr/local
> that's available via MacPorts; use MacPorts to install it instead.
> In this case, we don't have portfiles for hplip/foomatic so it's ok.
>
> We do have a portfile for clamav, but since your clamXav is not
> installed in prefix /usr/local but instead in prefix /usr/local/
> clamXav it shouldn't interfere with MacPorts, and I understand
> clamXav is a graphical frontend for clamav so just installing clamav
> from MacPorts might not give you the same interface.
>
>
> P.S: Use Reply All so your reply goes to the list too, not just to me.
>
>
>
More information about the macports-users
mailing list