I had a problem where one user could not print in BoardStation. The problem was that nothing happened when they went to print. It turned out to be a problem for me as well. I had one other user on a different computer that didn’t have this problem. So I made sure that all the same packages were installed on both computers and that the same settings were used. It didn’t matter, the ezprint window would not pop up in any BoardStation program.
After a day of messing around with things, I finally found the problem was in the setting of LD_LIBRARY_PATH. If I included the directory containing the library that specctra needed (/net/sw/cadence/spb/spb16.5/tools.lnx86/lib) then the print file wouldn’t appear. If I took that library out, the print window popped up without a problem.
Unfortunately, without that library, the specctra program would not run. And both of our engineers still use specctra for routing. So I wanted to get both programs working correctly at the same time.
The solution was to add /lib and /usr/lib to the beginning of the LD_LIBRARY_PATH environment variable. So now my LD_LIBRARY_PATH variable looks like this:
$ printenv LD_LIBRARY_PATH
/lib:/usr/lib:/net/sw/cadence/spb/spb16.5/tools.lnx86/lib:/usr/lib64/root:/net/sw/wxWidgets-2.8.12/x64/lib
and both programs work correctly.
Posted by maryh on June 16, 2017 at 1:24 pm under Cadence, Commands, Installation, Mentor, Printing, Software.
Comments Off on LD_LIBRARY_PATH, Specctra and BoardStation Ezprint Problems.
I added a user to our ldap server and then realized that I’d made a mistake. So I quickly ran an ldapmodify command to fix my mistake. Unfortunately, I had already run a finger command on the new user, which is when I saw the mistake. After the ldapmodify command, I still saw the mistake, even though I knew that it had been fixed. This problem was due to running nscd on the computer. This handles the passwd and group lookups for running programs and caches the result for the next query. The problem was that I wanted to clear the cache. The solution was to stop nscd, run the finger command which went and got the updated info and then turn nscd back on. Then all was well.
Posted by maryh on June 20, 2014 at 4:26 pm under Commands, Ldap, Software.
Comments Off on Ldap Cache.
Installed a new server with RHEL6 and was trying to get the synopsys license working on it. I kept getting this error,
[maryh@eshop bin]$ ./lmgrd
./lmgrd: Command not found.
even though that command was present in that directory.
The problem was I was missing some 32-bit packages on the system. I installed:
# yum install redhat-lsb-core.i686
which installed a bunch of packages. After that, everything worked as expected.
Posted by maryh on August 23, 2013 at 11:45 am under Installation, Licensing, Server, Software.
Comments Off on Lmgrd on RHEL6.
We had to move our svn repo to a different server. The paths to the repo were the same, but they were being served from, say server2.example.com instead of server1.example.com. Use the switch –relocate options in svn to make this happen.
$ svn switch --relocate svn+ssh://user@server1/usr/local/repos/trac/test svn+ssh://user@server2/user/local/repos/trac/test
Posted by maryh on December 12, 2012 at 2:06 pm under Commands, Software.
Comments Off on Switching SVN Servers.
In order to get our lmgrd command running in 64-bit rhel6, need to install redhat-lsb.i686 package. This installs a bunch of other packages as well.
Before installing this package, the lmgrd command gave this error:
[root@server bin]# ./lmgrd
-bash: ./lmgrd: /lib/ld-lsb.so.3: bad ELF interpreter: No such file or directory
Afterwards, it worked fine.
Posted by maryh on November 28, 2012 at 10:48 am under Installation, Licensing, Software, Synopsys.
Comments Off on Synopsys Licensing on RHEL6.
We needed to upgrade our current trac system to RHEL6. Here’s basically how I did it.
-Install RHEL6 Workstation
-Additional packages we were going to need: mod_ssl, mod_wsgi, ImageMagick, graphviz, libpng-static
[ ~]# easy_install Trac
[ web]# pwd
/nfs/net/web
[ web]# cp -Rp lappd-trac lappd-trac-rhel6
[ conf]# tracd --port 8000 /net/web/lappd-trac-rhel6/LAPPD
Opening a browser gave this error:
(The Trac Environment needs to be upgraded. Run “trac-admin /net/web/lappd-trac-rhel6/LAPPD upgrade”)
[ conf]# trac-admin /net/web/lappd-trac-rhel6/LAPPD upgrade
[ conf]# trac-admin /net/web/lappd-trac-rhel6/LAPPD wiki upgrade
Restarting the test on port 8000, works, but got errors:
/nfs/net/web/lappd-trac-rhel6/LAPPD/plugins/graphviz-0.7.5-py2.6.egg/graphviz/graphviz.py:23: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
[ plugins]# easy_install hashlib
Downloaded the graphviz source and unzipped, then ran:
[ 0.11-0.7.5]$ python setup.py bdist_egg
[ 0.11-0.7.5]$ cd dist
[ dist]$ easy_install graphviz-0.7.5dev-py2.6.egg
Other plugins that we’d need.
[ site-packages]# easy_install https://trac-hacks.org/svn/datefieldplugin/0.11/
[ site-packages]# easy_install -U -Z http://trac-hacks.org/svn/customfieldadminplugin/0.11
[ site-packages]# easy_install http://trac-hacks.org/svn/iniadminplugin/0.11
[ site-packages]# easy_install http://trac-hacks.org/svn/citemacro/0.11
We also had been using the TracMath plugin, I installed it, but as soon as it was activated, our system crashed. I looked around to see if we were perhaps missing a required package, but couldn’t find anything. So, I have disabled this plugin.
Posted by maryh on September 13, 2012 at 3:26 pm under Installation, Server, Software.
Comments Off on Trac Upgrade.
If we attempt to install this plugin, when we try to upgrade the database, we get this error:
[~]# trac-admin /net/web/lappd-trac/LAPPD upgrade
TypeError: __init__() got an unexpected keyword argument 'unique'
To fix, it depends on where the plugin was installed. For the system, delete it from /usr/local/lib/python2.6/site-packages. For the project, it will be in PROJECT_HOME/plugins. After deleting, restart the webserver.
Posted by maryh on January 24, 2012 at 1:12 pm under Installation, Server, Software.
Comments Off on TracWatchList Plugin for Trac.
I got some errors about latex style files missing. The ones in question were: type1ec.sty and preview.sty. I fixed this by downloading them from CTAN.org, unzipping the files, and running:
tex <filename.ins>
Then I moved the entire directory, in my case one for preview and one for type1ec to /usr/share/texmf/tex/latex. Then run texhash and things were good.
At some point, I also ran fmtutil-sys –missing, which may or may not have helped. I’m not sure.
Posted by maryh on January 10, 2012 at 4:53 pm under Installation, Software.
Comments Off on Missing .sty Files in Latex.
How to authenticate against and openldap server, in Apache.
Since we’re sending credentials, we want everything to be over https, so everything here is in the /etc/httpd/conf.d/ssl.conf file. I’m calling the openldap system, liberty.example.com and the system running the webserver, wishbone.example.com. The url for the site is then https://wishbone.example.com.
Right after SSL Global Context, add this line:
LDAPTrustedGlobalCert CA_BASE64 /opt/certs/ldap-server.pem
(This file is the certificate for your openldap system. It’s self-signed and a CA as well.)
Make a self-signed certificate for wishbone that you’ll use for https. If you use the Makefile, both your certificate and key will be in the same file.
SSLCertificateFile /etc/pki/tls/certs/wishbone.pem
SSLCertificateKeyFile /etc/pki/tls/certs/wishbone.pem
At the end of the file, just before the </VirtualHost>, add the following:
LDAPTrustedClientCert CERT_BASE64 /opt/certs/ldap-server.pem
LDAPTrustedMode SSL
<Directory /var/www/html>
Order allow,deny
Allow from all
</Directory>
<Location /login>
AuthType Basic
Authname 'Account Info'
AuthBasicProvider 'ldap'
AuthLDAPURL 'ldaps://liberty.example.com:636/ou=people,dc=liberty,dc=example,dc=com?uid?one'
AuthzLDAPAuthoritative off
Require valid-user
</Location>
Posted by maryh on January 5, 2012 at 6:46 pm under Installation, Ldap, Server, Software.
Comments Off on Apache Authentication.
I needed to install Trac on an RHEL5 system. This was a bit of a problem since it needed a version of python with threads and the version from RedHat does not have threads. We also have ldap set up for authentication and I wanted Trac to be able to use it.
- Compile and install sqlite3.
./configure
make
make install
(puts in under /usr/local)
- Compile and install subversion (it requires sqlite3, which is why I did that first)
./configure
make
make install
- Compile and install python2.6. RHEL uses the python installed in the system, so installing 2.6 in /usr/local solves our problem.
./configure –with-threads –enable-shared
make
Here I get these errors:
Failed to find the necessary bits to build these modules:
bsddb185 dl imageop
sunaudiodev
If you get errors for other packages here, you should be able to install the development package from RedHat to fix those. For the packages listed above, edit setup.py and comment out the sections having to do with these.
make install
- mod_wsgi module
./configure –with-python=/usr/local/bin/python2.6
make
make install
(The httpd module is installed in /usr/lib64/httpd/modules)
- If not installed, use yum to install httpd. And get it running.
- Install Trac
- easy_install Babel==0.95
- easy_install Trac
- Setup Trac
- trac-admin /net/web/lappd-trac/LAPPD initenv
Project name> LAPPD
Database connection string> sqlite:db/trac.dbj
-
# trac-admin /net/web/lappd-trac/LAPPD deploy /tmp/deploy
Copying resources from:
trac.web.chrome.Chrome
/root/.python-eggs/Trac-0.12.2-py2.6.egg-tmp/trac/htdocs
/net/web/lappd-trac/LAPPD/htdocs
Creating scripts.
# pwd
/net/web/lappd-trac/LAPPD
# /bin/rm -r htdocs/
# mv /tmp/deploy/* .
Now we need to make sure that everything worked.
# python
Python 2.6.7 (r267:88850, Jan 5 2012, 08:25:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import trac.web.main
>>> (no errors, it's ok)
- Create a software repo to use
svnadmin create /net/repos/trac/LAPPD
- Need to make sure the python bindings for subversion are installed. Go back to where you originally compiled subversion. Edit the Makefile so that SWIG_PY_INCLUDES includes -I/usr/local/include/Python2.6. Otherwise, the next command will give an error about finding Python.h
make swig-py
make install-swig-py
touch /usr/local/lib/python2.6/site-packages/svn-python.pth
echo /usr/local/lib/svn-python > /usr/local/lib/python2.6/site-packages/svn-python.pth
- Make some admin users
trac-admin /net/web/lappd-trac/LAPPD permission add user1 TRAC_ADMIN
trac-admin /net/web/lappd-trac/LAPPD permission add user2 TRAC_ADMIN
- Go into the Trac website, login (as one of the admins above) and go to admin and repository. Add the repository created. LAPPD: /net/repos/trac/LAPPD
- Resync the repository to Trac
trac-admin /net/web/lappd-trac/LAPPD repository resync ‘LAPPD’
- Macros can be added by downloading the zipped file, unzipping it and running python setup.py install. The macros will only be recognized after restarting httpd.
Posted by maryh on January 5, 2012 at 6:21 pm under Installation, Software.
Comments Off on Installing Trac.