小编Ahm*_*que的帖子

postgreSQL错误initdb:找不到命令

我正在使用linuxbrew在ubuntu上安装postgresql:

brew install postgresql
Run Code Online (Sandbox Code Playgroud)

它似乎工作正常,但之后因为我第一次安装PostgreSQL我尝试创建一个数据库:

initdb /usr/local/var/postgres -E utf8
Run Code Online (Sandbox Code Playgroud)

但它返回为:

initdb: command not found
Run Code Online (Sandbox Code Playgroud)

我试着运行命令 sudo but that doesn't helped

database postgresql ubuntu

7
推荐指数
3
解决办法
2万
查看次数

"... trap-sprockets"之后的无效CSS:"期望的选择器或at-rule,是"@import"bootst ..."

我真的很擅长轨道和编程,我正在努力教自己.我用bootstraps创建了一个简单的rails应用程序.面临的问题是我添加了带固定顶部的bootstrap导航栏,然后我添加了

body {
padding-top: 60px;
Run Code Online (Sandbox Code Playgroud)

}

但我陷入了错误:

Sass::SyntaxError in Pages#dashboard

Showing C:/Sites/tapo/app/views/layouts/application.html.erb where line #5 raised:

Invalid CSS after "...trap-sprockets"": expected selector or at-rule, was "@import "bootst..."

Rails.root: C:/Sites/tapo
Application Trace | Framework Trace | Full Trace

app/assets/stylesheets/application.css.scss:20
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___552321104_73620060'
Run Code Online (Sandbox Code Playgroud)

我的application.html.erb

    <!DOCTYPE html>
<html>
<head>
  <title>Tapo</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
    <nav class="navbar navbar-default navbar-fixed-top">
    <!-- Brand and toggle get grouped for better mobile …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails sass

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

标签 统计

database ×1

postgresql ×1

ruby-on-rails ×1

sass ×1

ubuntu ×1