Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nDE_S
New Contributor I
1,361 Views

I can't change my $PATH variable using .profile

Hi guys,

I stay trying put /usr/local/lib in my $PATH variable but I can not.

root@neuberfran:~# echo $PATH

/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/root/go/bin

according to this site: https://learn.sparkfun.com/tutorials/using-an-lcd-on-the-edison Using an LCD on the Edison - learn.sparkfun.com

every time I stay need command: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

I put go using this site: http://crgimenes.github.io/post/go_com_intel_edison/ http://crgimenes.github.io/post/go_com_intel_edison/

and .profile but I can't put /usr/local/lib

0 Kudos
4 Replies
idata
Community Manager
27 Views

Hi neuber,

 

 

Thank you for contacting us. Let us try to help you with your issue.

 

I'm wondering what method are you following to try to change the $PATH line. Could you please explain us with some more detail?

 

Did you make sure that this new path, /usr/local/lib/pkgconfig or the one you're using, exists?

 

 

Regards,

 

-Pablo
nDE_S
New Contributor I
27 Views

Thank's -Pablo,

I stay trying: 1) cd /home/root 2) nano .profile and put :/usr/local/lib in line export PATH =

I verify directory /usr/local/lib/pkgconfig

idata
Community Manager
27 Views

Hi Neuber,

Thank you for your explanation.

 

I just tried to run the "Using an LCF on the Edison" tutorial myself, and was able to change the path successfully, without having to use the .profile approach that you're using right now.

 

I used a fresh install of the latest image. I would suggest you to do the same: Flash your board using the Flashall script, connect to a WiFi network and then follow the steps from the guide. You might get better results this time.

 

Below you can see a picture of what I'm getting when running echo $PKG_CONFIG_PATH.

 

Regards,

-Pablo

idata
Community Manager
27 Views

Hi Neuber,

 

 

We haven't heard from you lately, and we would like to know if you had time to test our suggestions. I was able to change the path without issues so you might give that a try.

 

 

Regards,

 

-Pablo
Reply