Recent

Author Topic: environment variables  (Read 355 times)

cousinp

  • New Member
  • *
  • Posts: 20
environment variables
« on: September 11, 2024, 07:06:41 pm »
My system upgraded and the path I had for the fpc was no longer working. I tried to redo it but I messed up and think I destroyed the path that had to be amended with the fpc path. How do I get back to the original system advanced environment variables. there are user variables and system variables. Where do I add the path for the fpc.
thanks,

Bart

  • Hero Member
  • *****
  • Posts: 5365
    • Bart en Mariska's Webstek
Re: environment variables
« Reply #1 on: September 11, 2024, 11:26:34 pm »
What OS?

Bart

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1408
    • Lebeau Software
Re: environment variables
« Reply #2 on: September 12, 2024, 01:24:23 am »
My system upgraded and the path I had for the fpc was no longer working.

Can you be more specific?  What was upgraded, exactly?  What path were you using before, and how is it not working now?

How do I get back to the original system advanced environment variables.

It is unlikely that the OS maintains any kind of history of environment variables, so if you messed them up, you are going to have to manually re-edit them to remove your changes.  This is why it i not advisable to manually mess around with environment variables without knowing what you are doing.

What OS?

"user variables and system variables" likely implies Windows.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

dbannon

  • Hero Member
  • *****
  • Posts: 3086
    • tomboy-ng, a rewrite of the classic Tomboy
Re: environment variables
« Reply #3 on: September 12, 2024, 01:59:07 am »
If you are using Linux, I have something like this at the end of my .bashrc (so I can easily switch compilers) -

Code: Pascal  [Select][+][-]
  1. FPCV='fpc-3.2.3'
  2. export OLD_PATH="$PATH"
  3. # use OLD_PATH like this -
  4. # export PATH="$HOME/bin/FPC/fpc-3.2.2/bin":"$OLD_PATH"
  5. export PATH="$HOME/bin/FPC/$FPCV/bin":"$PATH"

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018