在Ubuntu中需要看知网的caj格式论文,需要使用wine安装CAJViewer 7.2.self.exe

下面是安装过程:

使用sudo apt-get install wine安装wine后,使用wine报错:

1
2
3
4
5
$ wine
ERROR: ld.so: object '/usr/lib/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit

错误信息:ERROR: ld.so: object ‘/usr/lib/libtcmalloc_minimal.so.4’ from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

解决方法

方法来自:
https://stackoverflow.com/questions/17723666/error-ld-so-object-ld-preload-cannot-be-preloaded-ignored

方法在回答的最后一句:
look inside your .bashrc or .bash_profile environment where the LD_PRELOAD is set and remove that library from the variable.

因此,使用sudo gedit ~/.bashrc打开在bashrc,然后修改如下:

bashrc修改

1
2
3
4
# 把下面这行注释掉
# export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so.4
# 输入下面内容
unset LD_PRELOAD

保存bashrc并退出,然后exit退出终端,再次打开终端,,使用wine就不会报错了

wine搞好了以后,下载cajviewer, 下载地址:http://cajviewer.cnki.net/download.html

我下的是7.2版本,

进入到下载的目录,运行: wine CAJViewer 7.2.self.exe

安装即可

caj-img