Ubuntu 13.04 normally starts Lazarus 1.0.8
After Ubuntu 13.04 is installed, it is found that the appmenu is easy to use and you do not need to delete it. However, after lazarus (from source) is installed, it has been crash. After investigation, it is an appmenu problem. Of course, lazarus in the official source is not completely normal.
So the solution is to change lazarus to the latest version and try to make it not load the appmenu at runtime.
The procedure is as follows:
1. Uninstall all lazarus-related files, including fpc
$ Sudo apt-get purge lazarus fpc-source
You may not be able to delete the files. In this case, run the following command to determine whether to delete the files.
$ Sudo dpkg-l | grep lazarus (fpc/fp can also be determined)
If found, use dpkg-r or dpkg-P to delete all
2. Delete the configuration file of the original lazarus.
In/usr/lib,/usr/share, find the directory starting with lazarus and delete it.
In the/etc directory, find the directory starting with lazarus and delete it. Find the file starting with fpc and delete it.
Find and delete the. lazarus directory in the $ HOME directory.
3. Search for and download lazarus 1.0.8 from sourceforge and run the following command to install
$ Sudo dpkg-I *. deb
4. After the installation is complete, run the following command:
$ Su-(current user)
$ Lazarus-ide
At this time, we can find that the appmenu is not loaded when lazarus is started, and the menu is displayed in the conventional mode, because crash will not be generated even if appmenu is absent.
So far, lazarus 1.0.8 can run normally. For the sake of insurance, you can also make the following changes
1. Delete overlay-scrollbar
2. recompile lazarus-ide
3. Direct Exec in/usr/share/applications/lazarus. desktop to $ HOME/. lazarus/bin/lazarus
For details about Lazarus IDE, click here
Lazarus IDE: click here