标签: linux-mint

系统包括移动到ubuntu,g ++无法解析REG_EIP

这段代码一直无法在ubuntu 12.04,12.10,linux mint 13和14中构建,但它在ubuntu maverick 10.10上正确编译

#include <stdio.h>
#include <signal.h>
#include <stdio.h>
#include <signal.h>
#include <execinfo.h>
#include <stdlib.h>
#include <string.h>

//#define __USE_GNU
//#include <sys/ucontext.h>

#include <ucontext.h>
#ifndef __USE_GNU
#error "__USE_GNU HAS been undefined"
#endif
#include <cxxabi.h>
#include <iostream>


#ifndef _SYS_UCONTEXT_H
#error "sys/context HAS NOT BEEN INCLUDED"
#endif

void print_trace(const char * file, int line) //(FILE *out, const char *file, int line)
{
    const size_t max_depth = 100;
    size_t stack_depth;
    void *stack_addrs[max_depth];
    char **stack_strings;

    stack_depth = backtrace(stack_addrs, max_depth);
    stack_strings = backtrace_symbols(stack_addrs, …
Run Code Online (Sandbox Code Playgroud)

linux g++ linux-mint ubuntu-12.04 ubuntu-12.10

1
推荐指数
1
解决办法
3916
查看次数

无法在mint中设置gvim的默认字体

我试图将我在Mac中的VIM配置移动到Linux Mint.

但是,无法设置gvim的默认字体.我已经放入set guifont=Monaco:h14我的.vimrc了,我也将字体下载到我的系统中.我已经检查了这个问题,该verbose命令可用于查找gui_font的设置.我用verbose命令和结果指向我的.vimrc.

最有趣的部分是我可以通过相同的命令设置gui字体:set guifont=Monaco:h14在gvim的运行环境中.

vim fonts linux-mint

1
推荐指数
1
解决办法
929
查看次数

错误"致命错误:无法找到本地咕噜声." 在构建atom.io时

我试图构建atom.io并完成构建脚本没有任何错误.但是当我尝试运行"./grunt install"时,我总是会收到以下错误:

grunt-cli: The grunt command line interface. (v0.1.13)

Fatal error: Unable to find local grunt.

If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started
Run Code Online (Sandbox Code Playgroud)

所以我按照" http://gruntjs.com/getting-started "的建议尝试了以下命令:

sudo npm install grunt --save-dev
Run Code Online (Sandbox Code Playgroud)

这提供了以下输出:

andreas@debian ~/atom.io $ sudo npm install grunt --save-dev
npm http GET https://registry.npmjs.org/grunt
npm http 304 https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/async
npm …
Run Code Online (Sandbox Code Playgroud)

linux-mint gruntjs atom-editor

1
推荐指数
1
解决办法
7323
查看次数

亚行没有回应.如果您想重试,请手动终止"adb"并点击"重启"

所以......这个问题让我头撞墙约两天了.当我尝试运行我的android项目时,标题字段中提到的错误出现在弹出窗口中.我在32位Linux-mint发行版上使用android studio.我尝试过波纹管解决方案,但没有一个解决了这个问题.

  1. 转到工具 - > Android - >启用ADB entegration

    我的结果:

    adb kill-server adb start-server

    adb devices
    daemon not running. starting it now on port 5037

    daemon started successfully List of devices attached . . 没有列出任何设备

  2. 安装依赖项

    我的结果:

    Reading state information... Done E: Unable to locate package lib32z1 E: Unable to locate package lib32z1-dev E: Unable to locate package lib32stdc++6 E: Couldn't find any package by regex 'lib32stdc++6'

android 32-bit linux-mint android-studio

1
推荐指数
1
解决办法
6942
查看次数

相对路径问题 - TypeScript 编译器在 Windows 和 Linux 上的行为不同

我用relative Paths在我创建导入模块Angular2TypeScript应用。

示例源代码

import {Http} from 'angular2/http';
import {Injectable} from 'angular2/core';
import {Person} from '../core/Person';  
Run Code Online (Sandbox Code Playgroud)

这在 windows (tsc v1.7.5) 上编译得很好,但不能在 Linux 上加载。

问题:

  1. 为什么这在 linux 上表现如此?
  2. 有没有标准方法可以在打字稿中声明模块的路径?

配置文件

{
  "compilerOptions": {
    "target": "es5",
    "module": "system",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false
  },
  "exclude": [
    "node_modules",
     "wwwroot/lib"
  ]
}
Run Code Online (Sandbox Code Playgroud)

Ubuntu 14.04 上的错误

wwwroot/app/people/people.service.ts(3,22): 错误 TS2307: 找不到模块“../core/Person”。wwwroot/app/routes.config.ts(1,22): 错误 TS2307: 找不到模块“./home/Home”。wwwroot/app/routes.config.ts(2,23): 错误 TS2307: 找不到模块“./about/About”。wwwroot/app/routes.config.ts(3,24): 错误 TS2307: 找不到模块“./people/People”。wwwroot/app/routes.config.ts(4,30): 错误 …

linux-mint ubuntu-14.04 typescript1.7 angular

1
推荐指数
1
解决办法
1911
查看次数

c ++:错误:无法识别的命令行选项'-std = c ++ 14'

我刚刚将PC从Ubuntu 15.10迁移到Linux Mint 17.3。

在进行此更改之前,该项目在CLion中编译得很好。现在,它给出以下错误:

c ++:错误:无法识别的命令行选项'-std = c ++ 14'

这可能是由于我的CMake文件中的这一行:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -W -Wall -Wextra -pedantic")
Run Code Online (Sandbox Code Playgroud)

我怀疑此错误是由于某些过时的库/编译器引起的。我不知道该怎么办。

PS:我知道CLion不完全支持C ++ 14,编辑器会抱怨语法错误,但是仍然可以编译。

linux-mint c++14 clion

1
推荐指数
1
解决办法
5119
查看次数

Python:如何关闭我的CSV输入和输出文件?

嗨,我一直在试验Winston Ewert的代码示例.

Python:删除重复的CSV条目

但我无法关闭输入和输出文件.我究竟做错了什么?

write_outfile.close()

write_infile.close()

回溯(最近一次调用最后一次):文件"Duplicates_01.py",第26行,在write_outfile.close()中AttributeError:'_ csv.writer'对象没有属性'close'

import csv

write_infile = csv.reader(open('File1.csv', 'r'))
write_outfile = csv.writer(open('File2.csv', 'w'))

#write_infile = open('File1.csv', 'r')
#f1 = csv.reader(write_infile)
#f1 = csv.reader(write_infile, delimiter=' ')

#write_outfile = open('File2.csv', 'w')
#f2 = csv.writer(write_outfile)
#f2 = csv.writer(write_outfile, delimiter=' ')

phone_numbers = set()

for row in write_infile:
    if row[1] not in phone_numbers:
        write_outfile.writerow(row)
#       f2.writerow(row)
        phone_numbers.add(row[1])

# write_outfile.close()
# write_infile.close()
Run Code Online (Sandbox Code Playgroud)

File1.csv

user, phone, email
joe, 123, joe@x.com
mary, 456, mary@x.com
ed, 123, ed@x.com
Run Code Online (Sandbox Code Playgroud)

python csv linux-mint python-3.5

1
推荐指数
1
解决办法
4181
查看次数

在 Chrome 中单击“在文件夹中显示”时阻止打开 Visual Studio Code

我已经在谷歌上搜索了半天了。

当我在 Google Chrome 中下载某些内容时,我想转到包含文件的文件夹。但是当我按“在文件夹中显示”时,会启动 Visual Studio Code 而不是我的 Thunar。我怎样才能解决这个问题?

Firefox 可以打开文件夹,但 Chromium、Google-Chrome 和 Opera 会打开 Visual Studio Code。

我的系统是 Linux Mint Tara。我已经尝试了一些东西。喜欢添加

[Default Applications]
inode/directory=Thunar.desktop
Run Code Online (Sandbox Code Playgroud)

到 /home/[user]/.config/mimeapps.list

code.desktop从 /usr/share/applications/mimeinfo.cache 中完全删除

xdg-mime default Thunar.desktop inode/directory了,输出的xdg-mime query default inode/directory是Thunar.desktop!!!

甚至从文件系统中完全删除了 code.desktop。没有任何效果!

请帮忙,这让我很恼火。

google-chrome file-management chromium linux-mint visual-studio-code

1
推荐指数
3
解决办法
2529
查看次数

尝试在 linux mint 上构建 mariadb connector-c 时出错。怎么修?

我正在尝试在新安装的 linux mint 上构建 mariadb++(mariadb 连接器/c)。我的流程是这样的:

$ git clone https://github.com/MariaDB/mariadb-connector-c.git
$ mkdir build && cd build
$ cmake ../mariadb-connector-c/ -DCMAKE_INSTALL_PREFIX=/usr
Run Code Online (Sandbox Code Playgroud)

这一切运行良好,问题发生在我调用make.

$ make
Run Code Online (Sandbox Code Playgroud)

输出:

Scanning dependencies of target client_ed25519
[  0%] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ed25519.c.o
[  1%] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_0.c.o
[  2%] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_isnegative.c.o
[  2%] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_sub.c.o
[  3%] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p1p1_to_p2.c.o
[  4%] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p3_to_cached.c.o
[  4%] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/open.c.o
In file included from /home/riley/mariadb-connector-c/plugins/auth/ref10/crypto_hash_sha512.h:2:0,
                 from /home/riley/mariadb-connector-c/plugins/auth/ref10/open.c:3: …
Run Code Online (Sandbox Code Playgroud)

linux mariadb linux-mint mariadb-connector-c

1
推荐指数
1
解决办法
790
查看次数

未知错误获取位置 GeolocationPositionError 代码 2 - Firefox Linux Mint

试图测试地理位置功能在我的阵营项目上Firefox 74.0Linux Mint 19.3

尝试执行以下代码时:

 window.navigator.geolocation.getCurrentPosition(
        position => console.log(position),
        err => console.log(err)
    );
Run Code Online (Sandbox Code Playgroud)

Firefox 浏览器控制台中显示以下错误:

GeolocationPositionError { code: 2, message: "Unknown error acquiring position" }
Run Code Online (Sandbox Code Playgroud)

firefox linux-mint npm reactjs

1
推荐指数
1
解决办法
1350
查看次数