After build KLayout from sources, I coun't run klayout in linux.

Hi!

I'm a begineer of KLayout.

After build KLayout from sources in Linux, I count' run klayout...

klayout

bash: klayout: command not found

any tips or solutions?
Thank you in advance!

Comments

  • Assume that your KLayout binary files are successfully installed under $HOME/KLayout/bin-release/ like

    drwxrwxr-x 12 user:group    12288 Mar 21 18:34 ./
    drwxrwxr-x 19 user:group     4096 Mar 21 18:07 ../
    drwxrwxr-x  2 user:group     4096 Feb  9 06:31 d25/
    drwxrwxr-x  2 user:group     4096 Mar 21 18:33 db_plugins/
    drwxrwxr-x  2 user:group     4096 Feb  9 06:31 drc/
    -rwxr-xr-x  1 user:group    45496 Mar 21 18:33 klayout*  <====== the main executable
    drwxrwxr-x  2 user:group     4096 Mar 21 18:34 lay_plugins/
    lrwxrwxrwx  1 user:group       27 Mar 21 18:33 libklayout_QtCore.so -> libklayout_QtCore.so.0.28.6*
    lrwxrwxrwx  1 user:group       27 Mar 21 18:33 libklayout_QtCore.so.0 -> libklayout_QtCore.so.0.28.6*
    :
    : omitted some files
    :
    lrwxrwxrwx  1 user:group       23 Mar 21 18:33 libklayout_tl.so -> libklayout_tl.so.0.28.6*
    lrwxrwxrwx  1 user:group       23 Mar 21 18:33 libklayout_tl.so.0 -> libklayout_tl.so.0.28.6*
    lrwxrwxrwx  1 user:group       23 Mar 21 18:33 libklayout_tl.so.0.28 -> libklayout_tl.so.0.28.6*
    -rwxr-xr-x  1 user:group  3279448 Mar 21 18:17 libklayout_tl.so.0.28.6*
    drwxrwxr-x  2 user:group     4096 Feb  9 06:31 lvs/
    drwxrwxr-x  2 user:group     4096 Feb  9 06:31 macros/
    drwxrwxr-x  2 user:group     4096 Feb  9 06:31 pymacros/
    drwxrwxr-x  4 user:group     4096 Feb  8 22:40 pymod/
    drwxrwxr-x  2 user:group     4096 Feb  9 06:31 python/
    drwxrwxr-x  2 user:group     4096 Feb  9 06:31 ruby/
    -rwxr-xr-x  1 user:group    13760 Feb  8 22:40 strm2cif*     \
    -rwxr-xr-x  1 user:group    13760 Feb  8 22:40 strm2dxf*     |
    -rwxr-xr-x  1 user:group    13760 Feb  8 22:40 strm2gds*     |
    -rwxr-xr-x  1 user:group    13760 Feb  8 22:40 strm2gdstxt*  |
    -rwxr-xr-x  1 user:group    13760 Feb  8 22:40 strm2mag*     | the buddy command line tools
    -rwxr-xr-x  1 user:group    13760 Feb  8 22:40 strm2oas*     |
    -rwxr-xr-x  1 user:group    13760 Feb  8 22:40 strm2txt*     |
    -rwxr-xr-x  1 user:group    13760 Feb  8 22:40 strmclip*     |
    -rwxr-xr-x  1 user:group    13752 Feb  8 22:40 strmcmp*      |
    -rwxr-xr-x  1 user:group    13752 Feb  8 22:40 strmrun*      |
    -rwxr-xr-x  1 user:group    13752 Feb  8 22:40 strmxor*      /
    

    The two environment variables PATH and LD_LIBRARY_PATH should contain THE DIRECTORY in them.
    In Bash, you can check the contents of these variables by:

    $ echo $PATH
    $ echo $LD_LIBRARY_PATH
    

    To set THE DIRECTORY, do

    $ export PATH=$HOME/KLayout/bin-release/:$PATH
    $ export LD_LIBRARY_PATH=$HOME/KLayout/bin-release/:$LD_LIBRARY_PATH
    

    Usually, we write the above two lines in the $HOME/.bashrc file.

    Good luck!

  • Perfect answer! Thanks to sekigawa!
    Thumbs up!!! :)

Sign In or Register to comment.