python - Gstreamer,XDG_RUNTIME_DIR 未设置错误
问题描述
当我遇到以下错误时,我正在阅读本教程。
操作系统描述:LINUX UBUNTU 20.04 LTS
输入:在教程文件中使用成功编译教程后
gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0`
并执行教程
./basic-tutorial-1
如网站所述,我得到了这个输出。
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
shared memfd open() failed: Function not implemented
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
我已经阅读过,XDG_RUNTIME_DIR
但我不确定我应该将它分配给哪个文件,或者这是否是问题所在;参考。
解决方案
推荐阅读
- google-apps-script - 如何删除 Youtube 播放列表中的视频并每天填充新视频
- node.js - 如何在 MongoDB 中构建“用户朋友”集合?
- mongodb - 无法使用 mongo shell 连接到 mongodb Atlas 集群
- python - vscode 可以在文件夹级别运行 pytests 而不是只运行所有测试或只运行单个测试吗?
- c# - 如何在 C# 中从文本框添加到面板
- swift - 表格视图未加载
- c - 找到最大的递减和递增
- java - 如何在 android studio 中使用 Retrofit 2.0 在 Header 中发送身份验证令牌
- reactjs - 用于用户详细信息更新的 Firebase 侦听器
- python-3.x - 命令提示符无法识别 python