[ChatGpt experience] install Cursor compiler on ubuntu18

insert image description here
It is more troublesome to use chatgpt in China. I found a lot of tutorials, but I didn’t know how to do it. I suddenly saw Cursor, an artifact of code writing launched by OpenAI. Hurry up and experience it~~

Cursor

Official website portal: Cursor
insert image description here
windows can be installed directly. I am using ubuntu18 here and need to upgrade the corresponding library.

First download the installation package from the official website.

The installation package format is AppImage format.

"Installation" can be achieved by directly running appimage.

First give the package executable permissions:

chmod u+x  <AppImage File>

Then execute it directly:

./aplicacion.AppImage

It can be run Cursor.

problems encountered

An error occurred during the installation process:
insert image description here
this is because GLIBC has not been upgraded.

Here you need to upgrade GLIBC.

The upgrade method is as follows, refer to the blog post to upgrade GLIBC :

Step 1: Add software source

, /etc/apt/sources.listadd a line to the file like this:

deb http://security.debian.org/debian-security buster/updates main 

Update packages:

sudo apt update  # 更新软件源
Step 2: Add a signature

When performing the update in the first step, an error signature problem may be reported:

正在读取软件包列表... 完成    
W: GPG 错误:http://security.debian.org/debian-security buster/updates InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 112695A0E562B32A NO_PUBKEY 54404762BBB6E853
E: 仓库 “http://security.debian.org/debian-security buster/updates InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

If this is the case we need to add the signature manually:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A 54404762BBB6E853

Note:
The following 112695A0E562B32A 54404762BBB6E853 is the public key in the NO_PUBKEY 112695A0E562B32A NO_PUBKEY 54404762BBB6E853 mentioned above, just replace it with the corresponding one .

Then re-apt-get update.

sudo apt update  # 更新软件源
Step Three: Upgrade

First, check out the packages that can be upgraded:

sudo apt list --upgradable   

Here you can see libc6 related packages.

libc6/oldstable 2.28-10+deb10u2 amd64 [可从该版本升级:2.27-3ubuntu1.6]
libc6-dbg/oldstable 2.28-10+deb10u2 amd64 [可从该版本升级:2.27-3ubuntu1.6]
libc6-dev/oldstable 2.28-10+deb10u2 amd64 [可从该版本升级:2.27-3ubuntu1.6]
libc6-i386/oldstable 2.28-10+deb10u2 amd64 [可从该版本升级:2.27-3ubuntu1.6]

Install the libc6 package:

sudo apt install libc6-dev  

Check out the current version:

strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC_

You can see GLIBC_2.28it .

The upgrade is over. O(∩_∩)O haha~

to experience

insert image description here

Guess you like

Origin blog.csdn.net/u012739527/article/details/129782381