小编The*_*rSE的帖子

找不到也不能安装mysql_config

我从Inspircd得到这个错误

Can't exec "mysql_config": No such file or directory at /home/alpha/inspircd-2.0.19/make/utilities.pm line 392, <FLAGS> line 37.


Make sure you have pkg-config installed

In the case of gnutls configuration errors on debian,
Ubuntu, etc, you should ensure that you have installed
gnutls-bin as well as libgnutls-dev and libgnutls.
Run Code Online (Sandbox Code Playgroud)

我一直在寻找互联网试图找出如何删除错误.

我已阅读多个帖子但没有运气.我知道我需要libmysqlclient-dev软件包但我不能为我的生活安装它.

我跑

sudo apt-get install libmysqlclient-dev
Run Code Online (Sandbox Code Playgroud)

还尝试清理," - f"等,但我仍然得到错误.

The following packages have unmet dependencies:
libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.40-0ubuntu1) but 5.5.41-0ubuntu0.14.04.1 is to be installed
E: Unable to correct problems, …
Run Code Online (Sandbox Code Playgroud)

mysql linux terminal ubuntu

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

Mod_rewrite已启用但无法正常工作

我已经阅读了一段时间,我无法让它工作.

在Apache中启用了mod_rewrite,我将AllowOverride更改为all

我的.htaccess看起来像这样:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ profile.php/?username=$1 [L]
Run Code Online (Sandbox Code Playgroud)

我的apache2默认文件如下所示:ServerAdmin webmaster @ localhost

    DocumentRoot /var/www
    <Directory />
            Options FollowSymLinks
            AllowOverride all
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride all
            Order allow,deny
            allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log …
Run Code Online (Sandbox Code Playgroud)

apache

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

Viewpager选项卡片段和正常片段

我事先为我的错误代码和糟糕的知识道歉.我刚刚开始使用Android和Java进行编码

我的问题是我有导航抽屉和标签.虽然如果我从导航抽屉中选择加载在片段中的东西,它就不会显示.仅显示选项卡.

我的计划是,一个导航抽屉标签内部应有3个标签,其余部分只是没有标签的普通页面.

MainActivity.java

http://pastebin.com/TV7aWy9c

activity_main.xml中

<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    tools:openDrawer="start">

    <FrameLayout
        android:id="@+id/fragment_layout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:background="#000000" />

    <include
        layout="@layout/app_bar_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <android.support.design.widget.NavigationView
        android:id="@+id/nav_view"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:fitsSystemWindows="true"
        app:headerLayout="@layout/nav_header_main"
        app:menu="@menu/activity_main_drawer" />

</android.support.v4.widget.DrawerLayout>
Run Code Online (Sandbox Code Playgroud)

app_bar_main.xml

<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    tools:context="se.themeister.hello.MainActivity">

    <android.support.design.widget.AppBarLayout
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:theme="@style/AppTheme.AppBarOverlay">

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="?attr/colorPrimary"
            app:popupTheme="@style/AppTheme.PopupOverlay" />

        <android.support.design.widget.TabLayout
            android:id="@+id/tab_layout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/toolbar"
            android:background="?attr/colorPrimary"
            android:elevation="6dp"
            android:minHeight="?attr/actionBarSize"
            android:theme="@style/AppTheme.AppBarOverlay"/>

        <android.support.v4.view.ViewPager
            android:id="@+id/pager"
            android:layout_width="match_parent"
            android:layout_height="fill_parent"
            android:background="#009900"
            android:layout_below="@id/tab_layout"/>

    </android.support.design.widget.AppBarLayout>

    <include …
Run Code Online (Sandbox Code Playgroud)

java tabs android android-fragments

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

phpmyadmin.conf和apache.conf缺失

当试图用apache启动时

sudo /etc/init.d/apache2 restart
Run Code Online (Sandbox Code Playgroud)

我收到了错误

apache2: Syntax error on line 260 of /etc/apache2/apache2.conf: Could not open
configuration file /etc/apache2/conf.d/phpmyadmin.conf: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
Run Code Online (Sandbox Code Playgroud)

我该怎么办?在互联网上阅读时,我应该在/ etc/phpmyadmin中有一个名为apache.conf的文件,但我没有.

ubuntu apache2 phpmyadmin

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

最近和table_uiprefs不行

所以,我一直试图让phpMyAdmin没有问题地工作,但我无法弄清楚问题是什么.它说除了$ cfg ['Servers'] [$ i] ['recent']和$ cfg ['Servers'] [$ i] ['table_uiprefs']

config.inc.php文件

    <?php
/**
 * Debian local configuration file
 *
 * This file overrides the settings made by phpMyAdmin interactive setup
 * utility.
 *
 * For example configuration see
 *   /usr/share/doc/phpmyadmin/examples/config.sample.inc.php
 * or
 *   /usr/share/doc/phpmyadmin/examples/config.manyhosts.inc.php
 *
 * NOTE: do not add security sensitive data to this file (like passwords)
 * unless you really know what you're doing. If you do, any user that can
 * run PHP or CGI on …
Run Code Online (Sandbox Code Playgroud)

php mysql phpmyadmin

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

块比它应该大

所以我正在创建一个设计,当我测试它时,内容左边的边框有点偏.它没有在内容周围创建边框,它创建了更大的边框.

HTML

<ul id="profile_stats">
<li class="top"><b>100</b><br /><i>short</i></li>
<li class="top"><b>100</b><br /><i>long</i></li>
<li class="top"><b>100</b><br /><i>images</i></li><br />
<li class="bottom"><b>10</b><br /><i>friends</i></li>
<li class="bottom"><b>10</b><br /><i>followers</i></li>
</ul>
Run Code Online (Sandbox Code Playgroud)

CSS

ul#profile_stats {
    float: right;
    list-style-type: none;
    border-radius: 5px;
    margin-right: 10px;
    border: 1px solid #222;
    width: 180px;
}

ul#profile_stats li {
    float: left;
    padding: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

ul#profile_stats .top {
    width: 60px;
    background: #B0B0B0;
    border-bottom: 1px solid #FFF;
}

.top:not(:nth-of-type(1)) {
    border-left: 1px solid #FFF;
}

.top:not(:nth-of-type(3)) {
    border-right: 1px solid #000;
}

ul#profile_stats …
Run Code Online (Sandbox Code Playgroud)

html css

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

即使路径正确,也找不到文件

我真的不知道这里有什么问题.

我正在使用WAMP,这是我的路径

wamp   
     www  
          themeister   
               include   
                    stream   
                         gameslist.php   
                    pages   
                         test.php
Run Code Online (Sandbox Code Playgroud)

我在文件test.ph中并尝试用这个打开gameslist.php

<?php include('/themeister/include/stream/gameslist.php'); ?>
Run Code Online (Sandbox Code Playgroud)

它说该文件不存在.

php wamp

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

只取得不是你朋友的人

我的代码现在看起来像这样

<?php 
    $get_userinfo = mysql_query("SELECT * FROM users WHERE id != '$id'") or die(mysql_error());
    for ($i = 1; $i <= 6; $i++) {
            $userinfo = mysql_fetch_assoc($get_userinfo);
            $usertags = $userinfo['tags'];
            $tagsdata = explode(" ", $usertags);
            $interestsdata = explode(" ", $interests);
            $result = array_intersect($interestsdata, $tagsdata);

            echo '<li><img src="images/users/'.$userinfo['avatar'].'" /><a href="'.$userinfo['username'].'">'.$userinfo['name'].'</a><div class="add whotofollow'.$i.'" title="Not following/friends"></div></li>';
            }
?>
Run Code Online (Sandbox Code Playgroud)

因此,这会选择所有不属于您自己的用户,然后根据您对人的兴趣进行匹配,以便只显示您实际需要更新的人.然后它使得所有这些人中只有6人变得可见,并且它不会像在大多数情况下在大多数事物中首先检查的那样.

有一些我自己不知道怎么编码的东西.

我首先需要确保只显示我没有添加为朋友的人.朋友存储在名为"friends"的表中,该表包含行"userid"和"userid2".如果我们是朋友,则userid或userid2可以是我的id.

其次,我需要订购它们,以便我首先与地方最常见,然后展示与我最相同的前6名人员,而不是6个随机人员.

所以基本上,我如何首先检查所以我没有将它们添加为朋友?(表:朋友,行:userid和userid2,id可以是我的id)如何选择与我最常见的前6名人员?

php mysql

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

标签 统计

mysql ×3

php ×3

phpmyadmin ×2

ubuntu ×2

android ×1

android-fragments ×1

apache ×1

apache2 ×1

css ×1

html ×1

java ×1

linux ×1

tabs ×1

terminal ×1

wamp ×1