Recent

Author Topic: Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2  (Read 5662 times)

Raf20076

  • Full Member
  • ***
  • Posts: 173
    • https://github.com/Raf20076
Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2
« on: May 12, 2017, 08:15:44 pm »
Hi everyone

After upgrading of Debian Linux when I start Lazarus I get Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2 from Lazarus.

I removed Lazarus in terminal

Code: Pascal  [Select][+][-]
  1. sudo apt-get purge fpc lazarus
  2. sudo rm -Rf /usr/lib/fpc
  3. sudo rm -Rf /usr/lib/lazarus
  4. sudo rm -Rf /usr/share/fpcsrc
  5. sudo rm -f ~/.fpc
  6. sudo rm -Rf ~/.lazarus
  7. apt-get autoremove --purge

to make sure to remove everything after Lazarus then I install it again.

But I get error Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2 from Lazarus. Nothing helps. I don't want to reinstall Debian to get new installation of Lazarus. ANY IDEAS? I removed Lazarus a few times and install again, but without any success.

Thanks

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2
« Reply #1 on: May 12, 2017, 08:34:39 pm »
There may be some fpc.cfg left in /etc maybe?
Specialize a type, not a var.

SunyD

  • Guest
Re: Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2
« Reply #2 on: May 12, 2017, 08:41:20 pm »
I got this errors years ago as i used svn-version. I edited version.inc manually.
Edit ide/version.inc
type for lazarus 1.6.4
'1.6.4'
and for for lazarus 1.6.2
'1.6.2'


Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2
« Reply #3 on: May 12, 2017, 09:30:12 pm »
Never do that...
And my maybe is not so maybe: go to /etc and delete fpc.cfg

And sudo rm -Rf should be sudo rm -rf  (lowercase r)
« Last Edit: May 12, 2017, 09:35:40 pm by Thaddy »
Specialize a type, not a var.

Raf20076

  • Full Member
  • ***
  • Posts: 173
    • https://github.com/Raf20076
Re: Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2
« Reply #4 on: May 14, 2017, 06:23:35 pm »
Code: Pascal  [Select][+][-]
  1. apt-get update
  2. sudo apt-get purge fpc lazarus
  3. sudo rm -rf /usr/lib/fpc
  4. sudo rm -rf /usr/lib/lazarus
  5. sudo rm -rf /usr/share/fpcsrc
  6. sudo rm -f ~/.fpc
  7. sudo rm -rf ~/.lazarus

Code: Pascal  [Select][+][-]
  1. find / -name fpc.cfg
file fpc.cfg wasn't found (which is OK)

Code: Pascal  [Select][+][-]
  1. apt-get install lazarus


I run Lazarus and I get

Code: Pascal  [Select][+][-]
  1. Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2


Doesn't work as I suspected

Raf20076

  • Full Member
  • ***
  • Posts: 173
    • https://github.com/Raf20076
Re: Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2
« Reply #5 on: May 14, 2017, 06:26:53 pm »
Code: Pascal  [Select][+][-]
  1. nano /usr/lib/lazarus/1.6.2/ide/version.inc
I edited file version.inc and changed to '1.6.2'

Doesn't work

Raf20076

  • Full Member
  • ***
  • Posts: 173
    • https://github.com/Raf20076
Re: Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2
« Reply #6 on: May 14, 2017, 06:35:58 pm »
I got it :D I edited file

Code: Pascal  [Select][+][-]
  1. nano /usr/lib/lazarus/1.6.2/ide/version.inc

and changes '1.6.2+dfsg-2' to '1.6.2+dfsg-1' and now it works  ;)

Any ideas what happened?

Handoko

  • Hero Member
  • *****
  • Posts: 5130
  • My goal: build my own game engine using Lazarus
Re: Warning: wrong version in ide/version.inc: 1.6.2+dfsg-2
« Reply #7 on: May 14, 2017, 06:45:10 pm »
Did you install Lazarus from your Linux's repository? I recommend you to  download the deb files from Lazarus official (SourceForge). Current version is 1.6.4.

You may need to perform a clean-installation:

Quote
01. Uninstall lazarus, fpc, fpc-src
02. Delete ~/.lazarus, except: editoroptions, environmentoption
03. Delete /etc/fp.*
04. Delete /usr/share/fpcsrc
05. Delete /usr/lib/fpc
06. Delete /usr/bin/ppc*
07. Install fpc_3.0.2-170225_amd64.deb
08. Install fpc-src_3.0.2-170225_amd64.deb
09. Install lazarus-project_1.6.4-0_amd64.deb

Note:
- I keep editoroptions and environmentoption (step 02) because I want to keep settings I have made on Lazarus.
- The deb files' names (step 07, 08, 09) may be different.

You can get the installation files (3 deb files) from here:
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6.4/

My step-by-step above never fails me so far.
Good luck!

 

TinyPortal © 2005-2018