<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sat May 18, 2013 8:54 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sat May 18, 2013 8:54 pm</pubDate>
  <lastBuildDate>Sat May 18, 2013 8:54 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Add to Debian search path for programmes?</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108558#108558</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68284'&gt;SiriusHardware&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Oct 30, 2012 11:43 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;paulm wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;I use a ~/bin directory for my own scripts. And I make sure its in the path by adding this to my ~/.bashrc:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;if &amp;#91; -d ~/bin &amp;#93;; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PATH=~/bin&amp;#58;$PATH&lt;br /&gt;
fi&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; More complicated than it really needs to be, but it checks for the existence of a bin directory in my home directory and adds it to the path if one is found.&lt;br /&gt;
&lt;br /&gt;
Paul.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
OK Paul, I'll have a look in that direction, thanks.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108558#108558</comments>
                                        <author>SiriusHardware</author>
                                        <pubDate>Tue Oct 30, 2012 11:43 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108558#108558</guid>
                                      </item>
                                      <item>
                                        <title>Re: Add to Debian search path for programmes?</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108557#108557</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=6923'&gt;paulm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Oct 30, 2012 11:25 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I use a ~/bin directory for my own scripts. And I make sure its in the path by adding this to my ~/.bashrc:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;if &amp;#91; -d ~/bin &amp;#93;; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PATH=~/bin&amp;#58;$PATH&lt;br /&gt;
fi&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; More complicated than it really needs to be, but it checks for the existence of a bin directory in my home directory and adds it to the path if one is found.&lt;br /&gt;
&lt;br /&gt;
Paul.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108557#108557</comments>
                                        <author>paulm</author>
                                        <pubDate>Tue Oct 30, 2012 11:25 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108557#108557</guid>
                                      </item>
                                      <item>
                                        <title>Re: Add to Debian search path for programmes?</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108556#108556</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68284'&gt;SiriusHardware&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Oct 30, 2012 11:16 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Dutch_Master wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;There's a distinct difference between /usr and &amp;quot;user&amp;quot; (as in: the actual person using the system)... The first is a directory, storing static stuff for applications and has its roots ( &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;) in Unix design over 4 decades ago. &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Investigate about adding paths to your profile so Bash can find them.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
I did try, that's the only reason I ended up looking at etc/profile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Actually, I erroneously remembered the word 'usr' rather than &lt;span style=&quot;font-style: italic&quot;&gt;you&lt;/span&gt; (now corrected in the original post, apologies for the mixup) but I seem to have done the right thing anyway - I now have home/fred/bin, into which I have copied the files as per the instructions, but BASH does not seem to see XASM there.&lt;br /&gt;
&lt;br /&gt;
Ok, here's the relevant bit from the program installation instructions:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&amp;quot;For an installation for the current user only, copy the file XASM and the entire directory Xapack into the directory ~/bin . For the less experienced Linux users, the ~/bin directory is the directory /home/you/bin, where you is the user name you used during logon. If the directory ~/bin doesn't exist, create it before copying the files into it. Ubuntu will automatically add the directory ~/bin to your PATH, the next time you start a new bash shell. If your Linux/Unix version doesn't do that, include ~/bin yourself to the PATH variable in your ~/.profile file.&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Looking at the section from /etc/profile in my previous post, do I need to add /home/fred/bin: to one of the existing PATH lines or both of them? Or do something else entirely?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108556#108556</comments>
                                        <author>SiriusHardware</author>
                                        <pubDate>Tue Oct 30, 2012 11:16 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108556#108556</guid>
                                      </item>
                                      <item>
                                        <title>Re: Add to Debian search path for programmes?</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108553#108553</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14187'&gt;Dutch_Master&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Oct 30, 2012 10:56 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      There's a distinct difference between /usr and &amp;quot;user&amp;quot; (as in: the actual person using the system)... The first is a directory, storing static stuff for applications and has its roots ( &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;) in Unix design over 4 decades ago. &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Investigate about adding paths to your profile so Bash can find them.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108553#108553</comments>
                                        <author>Dutch_Master</author>
                                        <pubDate>Tue Oct 30, 2012 10:56 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108553#108553</guid>
                                      </item>
                                      <item>
                                        <title>Add to Debian search path for programmes?</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108552#108552</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68284'&gt;SiriusHardware&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Oct 30, 2012 10:45 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I'm trying to install, run and use a cross-assembler. Debian Squeeze.&lt;br /&gt;
&lt;br /&gt;
This program is written in Python (V2) and is apparently configured as a Python 'Package', with a small launcher outside of a main package directory containing all the Python modules which make up the program.&lt;br /&gt;
&lt;br /&gt;
This linux PC has Python V2.6 installed, as it came on the distro.&lt;br /&gt;
&lt;br /&gt;
The installation instructions for Linux say to create home/you/bin (where 'you' is my username, presumably) - it did not already exist, so I've done that and now have that directory structure in place.&lt;br /&gt;
&lt;br /&gt;
Next step is to copy the launcher file XASM to home/you/bin, along with the directory containing all the support files for XASM&lt;br /&gt;
&lt;br /&gt;
The notes on programme installation say that on some distros such as Ubuntu the mere act of creating home/you/bin will cause an appropriate section to be added to the 'PATH' automatically, but otherwise to do it manually.&lt;br /&gt;
&lt;br /&gt;
I've tried my best to understand how to do this, but at the moment the only way I can run the programme is to go to home/you/bin where I can actually see the XASM file and type (for example)&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
python XASM 6502.asm&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
That works.&lt;br /&gt;
&lt;br /&gt;
As far as I can see, the 'profile' file in /etc profile does have a bit pointing to my usr/bin directory and should be looking there, but when I type&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
python XASM &amp;lt;enter&amp;gt;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
...from any other place in the directory tree, BASH can not find XASM. If it did find it, I would expect to be asked for the .asm file name. Instead, it BASH just complains that it can not find XASM at all.&lt;br /&gt;
.&lt;br /&gt;
Here's what I hope is the relevant section from etc/profile&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
if &amp;#91; &amp;quot;`id -u`&amp;quot; -eq 0 &amp;#93;; then&lt;br /&gt;
&amp;nbsp; PATH=&amp;quot;/usr/local/sbin&amp;#58;/usr/local/bin&amp;#58;/usr/sbin&amp;#58;/usr/bin&amp;#58;/sbin&amp;#58;/bin&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp; PATH=&amp;quot;/usr/local/bin&amp;#58;/usr/bin&amp;#58;/bin&amp;#58;/usr/local/games&amp;#58;/usr/games&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
export PATH&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
What am I missing here?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108552#108552</comments>
                                        <author>SiriusHardware</author>
                                        <pubDate>Tue Oct 30, 2012 10:45 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108552#108552</guid>
                                      </item></channel></rss>