PYTHONPATH=~/gramps-trunk/build/lib.linux-$(uname -m)-2.7/:/usr/local/lib/python2.7/site-packages/ LD_LIBRARY_PATH=/usr/local/lib python grampsapp. PYTHONPATH=~/gramps-trunk/build/lib.linux-$(uname -m)-2.7/ python grampsapp.py So this will work too:Ĭd ~/gramps-trunk/build/lib.linux-$(uname -m)-2.7/gramps If the build directory is in your PYTHONPATH, you can also just execute the grampsapp.py module. Install build tools and libraries that CMake depends on: sudo apt-get install. PYTHONPATH=~/gramps-trunk/build/lib.linux-$(uname -m)-2.7/:/usr/local/lib/python2.7/site-packages/ LD_LIBRARY_PATH=/usr/local/lib python -c 'from ampsapp import main main()' Installing The Kate Text Editor On Linux WebApr 27. PYTHONPATH=~/gramps-trunk/build/lib.linux-$(uname -m)-2.7/ python -c 'from ampsapp import main main()' If you point your PYTHONPATH to the build directory, you can actually run Gramps from a random directory. Python -c 'from ampsapp import main main()'Īgain, it might be needed to set with PYTHONPATH where dependencies can be found, and with LD_LIBRARY_PATH link libraries, see option 1. To run Gramps from build, doĬd trunk/build/lib.linux-$(uname -m)-2.7/ For the OpenGL headers, run sudo apt-get install. After a code change in your source, you then need to run however python setup.py again to update the build direcotry. editor, run sudo apt-get install kate (or gedit, kwrite or whatever you prefer, instead of kate). It is not bad however to keep your code separated from your execution, as deleting the build directory is easy. For compiled programs this is the only way, but for Gramps nothing is compiled. Here, we use the code build in trunk/build directory to run Gramps. PYTHONPATH=/usr/local/lib/python2.7/site-packages/ LD_LIBRARY_PATH=/usr/local/lib python Gramps.py Eg, if you install GTK and spell checking from source too, you will need something like: If you installed some dependencies of Gramps in non-default positions, you need to indicate with PYTHONPATH where they can be found, and with LD_LIBRARY_PATH where link libraries can be found. Note: the lib.linux-$(uname -m)-2.7 folder name vary depending on your system (i686 or x86_64). This is not ideal, but the easiest way to develop Gramps, as changes are immediately picked up by the code.Ĭopy the const.py file created in build to your source directory if you want to use your source directory to work with Gramps:Ĭp build/lib.linux-$(uname -m)-2.7/gramps/gen/const.py gramps/gen/const.py This means that compiled python files will be stored there. Here, we use the code in working directory to run Gramps. That is, do not type sudo python setup.py install.įrom Gramps 4.2.x and master in the top-level directory you only need to type (this assumes your default python is python3):įor Gramps 4.1.x and earlier (You can use either python or python3 substitute as necessary ): I think Answers by Muzaffar and Terrance serves your need.Do not install the development version if you don't know how to version python modules. One thing to note is that you can install any of these text editors in any flavors. Gedit is certainly the most famous text editor in the Ubuntu world. To open a file with gedit: gedit /path/to.file.txt To install Gedit on any Ubuntu flavor use the following command: sudo apt-get install gedit Gedit is also available for Windows and MacOS. KDE Neon (not an official Ubuntu flavor).To open a file with kate: kate /path/to.file.txt If you want the latest version of Kate, you'll need to add a PPA: sudo add-apt-repository ppa:kubuntu-ppa/backports To install, run: sudo apt-get install kate Like many KDE apps it has a load of features. To open a file with leafpad: leafpad /path/to.file.txt Unlike Kate, emphasis of Leafpad is on simplicity and lightness, which is whole agenda of the LXDE project. To install: sudo apt-get install mousepad In philosophy, Mousepad is pretty similar to Leafpad. To open a file with mousepad: mousepad /path/to.file.txt MAKE NOTEPAD DEFAULT TEXT EDITOR INSTALL *Note: if you want to edit files with root privileges, add gksu in front of a command, like this: gksudo gedit path/to/file.txt To open a file with pluma: pluma /path/to.file.txt Pluma is a fork of Gedit which comes preinstalled in Ubuntu Mate. I don't know if Nano is installed on all the Ubuntu flavors, but it's installed on Ubuntu Unity, Ubuntu Gnome and Kubuntu as per my knowledge. To open a file with nano use following command: nano /path/to.file.txtįor more information about Nano, see The Beginner’s Guide to Nano, the Linux Command-Line Text Editor. MAKE NOTEPAD DEFAULT TEXT EDITOR INSTALL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |